1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import config from "./config";
- import tool from "./utils/tool";
- import ImageSelect from "./components/upload/ImageSelect.vue";
- import ImageUpload from "./components/upload/ImageUpload.vue";
- import FileUpload from "./components/upload/FileUpload.vue";
- import vueDialog from "./components/vueDialog/index.vue";
- import time from "./directives/time";
- import copy from "./directives/copy";
- import noMoreClick from "./directives/noMoreClick";
- import { QuillEditor } from "@vueup/vue-quill";
- import "@vueup/vue-quill/dist/vue-quill.snow.css";
- import * as jpIcons from "./assets/icons";
- import * as icons from "@element-plus/icons-vue";
- import VCharts from "./components/vueEcharts/index.vue";
- export default {
- install(app) {
-
- app.config.globalProperties.$CONFIG = config;
- app.config.globalProperties.$TOOL = tool;
-
- app.component("QuillEditor", QuillEditor);
- app.component("ImageSelect", ImageSelect);
- app.component("ImageUpload", ImageUpload);
- app.component("FileUpload", FileUpload);
- app.component("v-dialog", vueDialog);
- app.component("v-chart", VCharts);
-
- app.directive("time", time);
- app.directive("copy", copy);
- app.directive("noMoreClick", noMoreClick);
-
- for (let icon in icons) {
- app.component(`ElIcon${icon}`, icons[icon]);
- }
- Object.keys(icons).forEach((key) => {
- app.component(`${key}`, icons[key]);
- });
-
- for (let icon in jpIcons) {
- app.component(`${icon}`, jpIcons[icon]);
- }
-
-
- },
- };
|