From bc9e3a50e100947373fa32459c3fcc02c60480df Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Mon, 31 Mar 2025 10:26:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20list-type=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/演示使用自行删除/upload/hook.ts | 2 +- apps/web-antd/src/views/演示使用自行删除/upload/index.vue | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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和文件会重叠 +