diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue new file mode 100644 index 0000000..0bec834 --- /dev/null +++ b/src/components/FileUpload/index.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/src/main.js b/src/main.js index d6e38bf..664a465 100644 --- a/src/main.js +++ b/src/main.js @@ -31,6 +31,8 @@ import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel } from import Pagination from '@/components/Pagination' // 自定义表格工具组件 import RightToolbar from '@/components/RightToolbar' +// 文件上传组件 +import FileUpload from "@/components/FileUpload" // 图片上传组件 import ImageUpload from "@/components/ImageUpload" // 图片预览组件 @@ -55,6 +57,7 @@ app.config.globalProperties.selectDictLabel = selectDictLabel app.component('DictTag', DictTag) app.component('Pagination', Pagination) app.component('TreeSelect', TreeSelect) +app.component('FileUpload', FileUpload) app.component('ImageUpload', ImageUpload) app.component('ImagePreview', ImagePreview) app.component('RightToolbar', RightToolbar)