diff --git a/apps/web-antd/src/views/演示使用自行删除/upload/hook.ts b/apps/web-antd/src/views/演示使用自行删除/upload/hook.ts index df4bc8a5..d2f3813e 100644 --- a/apps/web-antd/src/views/演示使用自行删除/upload/hook.ts +++ b/apps/web-antd/src/views/演示使用自行删除/upload/hook.ts @@ -23,7 +23,7 @@ export function useFileType() { value: str, })); - const currentFileListType = ref<(typeof fileListTypes)[number]>('text'); + const currentFileListType = ref<(typeof fileListTypes)[number]>('picture'); return { fileListOptions, diff --git a/apps/web-antd/src/views/演示使用自行删除/upload/index.vue b/apps/web-antd/src/views/演示使用自行删除/upload/index.vue index d139c19d..5e91e32c 100644 --- a/apps/web-antd/src/views/演示使用自行删除/upload/index.vue +++ b/apps/web-antd/src/views/演示使用自行删除/upload/index.vue @@ -16,7 +16,7 @@ import { useFileType, useImageType } from './hook'; import sql from './insert.sql?raw'; const singleImageId = ref('1905537674682916865'); -const singleFileId = ref('1905191167882518529'); +const singleFileId = ref('1906520520833949698'); const multipleImageId = ref(['1905537674682916865']); const multipleFileId = ref(['1905191167882518529']); @@ -181,6 +181,10 @@ const { copy } = useClipboard({ legacy: true });
注意文件上传不支持`picture-card`类型
+
+ 注意不要中途切换list-type(应该仅作为初始化属性使用) 会导致样式计算问题 + helpMessage和文件会重叠 +