refactor: reorganize all components (#8303)
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
import { ref, reactive, computed, CSSProperties } from 'vue';
|
||||
import { ref, reactive, computed, CSSProperties, defineComponent } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace, getZIndexStyle } from '../utils';
|
||||
import { BORDER_BOTTOM } from '../utils/constant';
|
||||
import { INDEX_BAR_KEY, IndexBarProvide } from '../index-bar';
|
||||
import { INDEX_BAR_KEY, IndexBarProvide } from '../index-bar/IndexBar';
|
||||
import { getScrollTop, getRootScrollTop } from '../utils/dom/scroll';
|
||||
|
||||
// Composables
|
||||
import { useRect, useParent } from '@vant/use';
|
||||
import { useExpose } from '../composables/use-expose';
|
||||
|
||||
const [createComponent, bem] = createNamespace('index-anchor');
|
||||
const [name, bem] = createNamespace('index-anchor');
|
||||
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
export default createComponent({
|
||||
props: {
|
||||
index: [Number, String],
|
||||
},
|
||||
@@ -0,0 +1,7 @@
|
||||
import { installable } from '../utils';
|
||||
import _IndexAnchor from './IndexAnchor';
|
||||
|
||||
const IndexAnchor = installable(_IndexAnchor);
|
||||
|
||||
export default IndexAnchor;
|
||||
export { IndexAnchor };
|
||||
Reference in New Issue
Block a user