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)