You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.7 KiB
51 lines
1.7 KiB
import { createApp } from 'vue';
|
|
import App from './App.vue';
|
|
import router from '@/router';
|
|
import { setupStore } from '@/store';
|
|
import { setupDirective } from '@/directive';
|
|
|
|
import ElementPlus from 'element-plus'
|
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
|
|
import '@/permission';
|
|
|
|
// 本地SVG图标
|
|
import 'virtual:svg-icons-register';
|
|
|
|
// 国际化
|
|
import i18n from '@/lang/index';
|
|
|
|
// 样式
|
|
import 'font-awesome/css/font-awesome.min.css'
|
|
import 'element-plus/es/components/message/style/css';
|
|
import 'element-plus/theme-chalk/dark/css-vars.css';
|
|
import '@/styles/index.scss';
|
|
import 'uno.css';
|
|
import '@/styles/workflowcss/override-element-ui.scss'
|
|
|
|
import ComComponents from '@/components/DesignForm/index'
|
|
import ComWidget from '@/widget/index'
|
|
import AKDesign from '@/views/sysworkflow/codepage/index'
|
|
import * as pinia from './store/index'
|
|
|
|
const app = createApp(App);
|
|
// 全局注册 自定义指令(directive)
|
|
setupDirective(app);
|
|
// 全局注册 状态管理(store)
|
|
setupStore(app);
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
|
|
app.directive('focus', {
|
|
mounted(el) {
|
|
el.focus();
|
|
}
|
|
});
|
|
|
|
app.use(router).use(i18n).use(ComComponents).use(ComWidget).use(ElementPlus, {
|
|
locale: zhCn
|
|
}).use(AKDesign).use(pinia.store).mount('#app');
|
|
|
|
|
|
|