From 61161cdd698fd690860943275d296ade38e6dcf1 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 30 Dec 2021 10:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9B=BE=E7=89=87=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/ImageUpload/index.vue | 197 +++++++++++++++++++++++++++ src/main.js | 3 + 2 files changed, 200 insertions(+) create mode 100644 src/components/ImageUpload/index.vue diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue new file mode 100644 index 0000000..f30eeab --- /dev/null +++ b/src/components/ImageUpload/index.vue @@ -0,0 +1,197 @@ + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 91fdbc5..9398b0c 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 ImageUpload from "@/components/ImageUpload" // 自定义树选择组件 import TreeSelect from '@/components/TreeSelect' // 字典标签组件 @@ -51,6 +53,7 @@ app.config.globalProperties.selectDictLabel = selectDictLabel app.component('DictTag', DictTag) app.component('Pagination', Pagination) app.component('TreeSelect', TreeSelect) +app.component('ImageUpload', ImageUpload) app.component('RightToolbar', RightToolbar) app.use(router)