From fa97ed9e2cb51b631115502d9d91fef66638da71 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 30 Dec 2021 13:50:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload/index.vue | 188 ++++++++++++++++++++++++++++ src/main.js | 3 + 2 files changed, 191 insertions(+) create mode 100644 src/components/FileUpload/index.vue 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)