feat: 文件上传组件新增类型

This commit is contained in:
insistence
2025-03-18 08:12:13 +08:00
parent 7645c6d9fd
commit dd5b1c55c9

View File

@@ -47,17 +47,17 @@ const props = defineProps({
// 数量限制
limit: {
type: Number,
default: 5,
default: 5
},
// 大小限制(MB)
fileSize: {
type: Number,
default: 5,
default: 5
},
// 文件类型, 例如['png', 'jpg', 'jpeg']
fileType: {
type: Array,
default: () => ["doc", "xls", "ppt", "txt", "pdf"],
default: () => ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "pdf"]
},
// 是否显示提示
isShowTip: {