|
@@ -11,12 +11,14 @@ import { createApp, defineAsyncComponent } from 'vue';
|
|
|
import Antd from 'ant-design-vue';
|
|
import Antd from 'ant-design-vue';
|
|
|
// import 'ant-design-vue/dist/antd.css';
|
|
// import 'ant-design-vue/dist/antd.css';
|
|
|
import 'ant-design-vue/dist/reset.css';
|
|
import 'ant-design-vue/dist/reset.css';
|
|
|
|
|
+window.Antd = Antd;
|
|
|
|
|
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
|
|
import { createStore } from 'vuex';
|
|
import { createStore } from 'vuex';
|
|
|
|
|
|
|
|
-import * as PcClientComponent from 'pc-component-v3';
|
|
|
|
|
|
|
+import * as PcComponentV3 from 'pc-component-v3';
|
|
|
import 'pc-component-v3/dist/pc-component-v3.css';
|
|
import 'pc-component-v3/dist/pc-component-v3.css';
|
|
|
|
|
+window.PcComponentV3 = PcComponentV3;
|
|
|
|
|
|
|
|
import VTooltip from 'v-tooltip';
|
|
import VTooltip from 'v-tooltip';
|
|
|
import 'v-tooltip/dist/v-tooltip.css';
|
|
import 'v-tooltip/dist/v-tooltip.css';
|
|
@@ -43,7 +45,7 @@ import { store } from './store.js';
|
|
|
import { i18n } from './lang.js';
|
|
import { i18n } from './lang.js';
|
|
|
import { router } from './routes/index.js';
|
|
import { router } from './routes/index.js';
|
|
|
|
|
|
|
|
-import { App, Common, PushMessage } from 'client-base-v4/dist/client-base-v4.js';
|
|
|
|
|
|
|
+import { App, Common, PushMessage, CurdWindowModal } from 'client-base-v4/dist/client-base-v4.js';
|
|
|
import { Notify } from 'pc-component-v3/dist/pc-component-v3.js';
|
|
import { Notify } from 'pc-component-v3/dist/pc-component-v3.js';
|
|
|
window.Common = Common;
|
|
window.Common = Common;
|
|
|
window.Notify = Notify;
|
|
window.Notify = Notify;
|
|
@@ -53,20 +55,6 @@ import * as AntDesignIconsVue from '@ant-design/icons-vue';
|
|
|
window.AntDesignIconsVue = AntDesignIconsVue;
|
|
window.AntDesignIconsVue = AntDesignIconsVue;
|
|
|
|
|
|
|
|
|
|
|
|
|
-const menuColor = {
|
|
|
|
|
- logoWidth: 150, // logo宽度
|
|
|
|
|
- mainColor: '#2a3f54', // 菜单栏主题色
|
|
|
|
|
- secondLevelColor: 'linear-gradient(#334556, #2c4257), #2a3f54', // 二级菜单颜色
|
|
|
|
|
- threeLevelColor: '#495d70', // 三级菜单悬浮颜色
|
|
|
|
|
- searchInputColor: '#1c3e4b', // 菜单搜索框颜色
|
|
|
|
|
-}
|
|
|
|
|
-// const menuColor = {
|
|
|
|
|
-// logoWidth: 150,
|
|
|
|
|
-// mainColor: '#277fd0',
|
|
|
|
|
-// secondLevelColor: '#2e8ee7',
|
|
|
|
|
-// threeLevelColor: '#6db0ee',
|
|
|
|
|
-// searchInputColor: '#1673c0',
|
|
|
|
|
-// }
|
|
|
|
|
|
|
|
|
|
const app = createApp(App);
|
|
const app = createApp(App);
|
|
|
app.use(Antd);
|
|
app.use(Antd);
|
|
@@ -74,10 +62,14 @@ app.use(i18n);
|
|
|
app.use(router);
|
|
app.use(router);
|
|
|
app.use(VTooltip);
|
|
app.use(VTooltip);
|
|
|
app.use(store);
|
|
app.use(store);
|
|
|
-app.use(PcClientComponent);
|
|
|
|
|
|
|
+app.use(PcComponentV3);
|
|
|
app.use(router);
|
|
app.use(router);
|
|
|
app.mount('#app');
|
|
app.mount('#app');
|
|
|
|
|
|
|
|
|
|
+// 全局注册组件, CURD窗口模态框编辑器
|
|
|
|
|
+app.component('CurdWindowModal', CurdWindowModal);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
window.app = app;
|
|
window.app = app;
|
|
|
|
|
|
|
|
|
|
|