refactor: reorganize all components (#8303)

This commit is contained in:
neverland
2021-03-08 11:50:37 +08:00
committed by GitHub
parent 3144a63d2b
commit e540876398
193 changed files with 1307 additions and 400 deletions
@@ -1,4 +1,4 @@
import { ref, Ref, reactive, computed, PropType } from 'vue';
import { ref, Ref, reactive, computed, PropType, defineComponent } from 'vue';
// Utils
import { range, isDef, createNamespace, preventDefault } from '../utils';
@@ -9,12 +9,14 @@ import { useRect, useClickAway } from '@vant/use';
import { useTouch } from '../composables/use-touch';
import { useExpose } from '../composables/use-expose';
const [createComponent, bem] = createNamespace('swipe-cell');
const [name, bem] = createNamespace('swipe-cell');
export type SwipeCellSide = 'left' | 'right';
export type SwipeCellPosition = SwipeCellSide | 'cell' | 'outside';
export default createComponent({
export default defineComponent({
name,
props: {
disabled: Boolean,
leftWidth: [Number, String],
+7
View File
@@ -0,0 +1,7 @@
import { installable } from '../utils';
import _SwipeCell from './SwipeCell';
const SwipeCell = installable(_SwipeCell);
export default SwipeCell;
export { SwipeCell };