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
+5 -2
View File
@@ -6,6 +6,7 @@ import {
reactive,
onMounted,
CSSProperties,
defineComponent,
} from 'vue';
// Utils
@@ -27,14 +28,16 @@ import Swipe, { SwipeToOptions } from '../swipe';
import Popup, { PopupCloseIconPosition } from '../popup';
import ImagePreviewItem from './ImagePreviewItem';
const [createComponent, bem] = createNamespace('image-preview');
const [name, bem] = createNamespace('image-preview');
export type ScaleEventParams = {
scale: number;
index: number;
};
export default createComponent({
export default defineComponent({
name,
props: {
show: Boolean,
closeable: Boolean,