Skip to content

Commit dd5b1c5

Browse files
committed
feat: 文件上传组件新增类型
1 parent 7645c6d commit dd5b1c5

File tree

1 file changed

+3
-3
lines changed
  • ruoyi-fastapi-frontend/src/components/FileUpload

1 file changed

+3
-3
lines changed

ruoyi-fastapi-frontend/src/components/FileUpload/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ const props = defineProps({
4747
// 数量限制
4848
limit: {
4949
type: Number,
50-
default: 5,
50+
default: 5
5151
},
5252
// 大小限制(MB)
5353
fileSize: {
5454
type: Number,
55-
default: 5,
55+
default: 5
5656
},
5757
// 文件类型, 例如['png', 'jpg', 'jpeg']
5858
fileType: {
5959
type: Array,
60-
default: () => ["doc", "xls", "ppt", "txt", "pdf"],
60+
default: () => ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "pdf"]
6161
},
6262
// 是否显示提示
6363
isShowTip: {

0 commit comments

Comments
 (0)