浏览代码

文件上传组件新增类型

RuoYi 5 月之前
父节点
当前提交
3393757b8c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/FileUpload/index.vue

+ 3 - 3
src/components/FileUpload/index.vue

@@ -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: {