diff --git a/apps/web-antd/src/components/upload/src/image-upload.vue b/apps/web-antd/src/components/upload/src/image-upload.vue index 445dcfe8..56584ae4 100644 --- a/apps/web-antd/src/components/upload/src/image-upload.vue +++ b/apps/web-antd/src/components/upload/src/image-upload.vue @@ -27,6 +27,12 @@ interface ImageUploadProps extends BaseUploadProps { * @default picture-card */ listType?: UploadListType; + /** + * 使用list-type: picture-card时 是否显示动画 + * 会有一个`弹跳`的效果 默认关闭 + * @default false + */ + withAnimation?: boolean; } const props = withDefaults(defineProps(), { @@ -43,6 +49,7 @@ const props = withDefaults(defineProps(), { helpMessage: true, enableDragUpload: false, abortOnUnmounted: true, + withAnimation: false, }); const emit = defineEmits(); @@ -78,6 +85,7 @@ function currentPreview(file: UploadFile) {
diff --git a/apps/web-antd/src/views/演示使用自行删除/upload/index.vue b/apps/web-antd/src/views/演示使用自行删除/upload/index.vue index 5b433d65..29860163 100644 --- a/apps/web-antd/src/views/演示使用自行删除/upload/index.vue +++ b/apps/web-antd/src/views/演示使用自行删除/upload/index.vue @@ -51,6 +51,8 @@ const customThumbnailUrl: CustomGetter = () => { }; const { copy } = useClipboard({ legacy: true }); + +const animationEnable = ref(false);