Skip to content

Commit ddbda47

Browse files
committed
feat: 文件上传组件新增类型
1 parent eb02588 commit ddbda47

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
@@ -51,17 +51,17 @@ export default {
5151
// 数量限制
5252
limit: {
5353
type: Number,
54-
default: 5,
54+
default: 5
5555
},
5656
// 大小限制(MB)
5757
fileSize: {
5858
type: Number,
59-
default: 5,
59+
default: 5
6060
},
6161
// 文件类型, 例如['png', 'jpg', 'jpeg']
6262
fileType: {
6363
type: Array,
64-
default: () => ["doc", "xls", "ppt", "txt", "pdf"],
64+
default: () => ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "pdf"]
6565
},
6666
// 是否显示提示
6767
isShowTip: {

0 commit comments

Comments
 (0)