refactor: reorganize all components (#8303)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { createNamespace, UnknownProp } from '../utils';
|
||||
import { ACTION_BAR_KEY } from '../action-bar';
|
||||
import { ACTION_BAR_KEY } from '../action-bar/ActionBar';
|
||||
|
||||
// Composables
|
||||
import { useParent } from '@vant/use';
|
||||
@@ -9,9 +10,11 @@ import { useRoute, routeProps } from '../composables/use-route';
|
||||
import Icon from '../icon';
|
||||
import Badge from '../badge';
|
||||
|
||||
const [createComponent, bem] = createNamespace('action-bar-icon');
|
||||
const [name, bem] = createNamespace('action-bar-icon');
|
||||
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
export default createComponent({
|
||||
props: {
|
||||
...routeProps,
|
||||
dot: Boolean,
|
||||
@@ -0,0 +1,7 @@
|
||||
import { installable } from '../utils';
|
||||
import _ActionBarIcon from './ActionBarIcon';
|
||||
|
||||
const ActionBarIcon = installable(_ActionBarIcon);
|
||||
|
||||
export default ActionBarIcon;
|
||||
export { ActionBarIcon };
|
||||
Reference in New Issue
Block a user