wzj-vue/src/main.ts

54 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-04-02 01:01:56 +08:00
import { createApp } from 'vue';
// global css
import 'virtual:uno.css';
2023-04-02 01:01:56 +08:00
import '@/assets/styles/index.scss';
import 'element-plus/theme-chalk/dark/css-vars.css';
// App、router、store
import App from './App.vue';
import store from './store';
import router from './router';
// 自定义指令
import directive from './directive';
// 注册插件
import plugins from './plugins/index'; // plugins
2024-01-19 18:26:18 +08:00
// 高亮组件
2024-01-25 01:53:53 +08:00
// import 'highlight.js/styles/a11y-light.css';
import 'highlight.js/styles/atom-one-dark.css';
2024-01-19 18:26:18 +08:00
import 'highlight.js/lib/common';
import HighLight from '@highlightjs/vue-plugin';
2023-04-02 01:01:56 +08:00
// svg图标
import 'virtual:svg-icons-register';
import ElementIcons from '@/plugins/svgicon';
// permission control
import './permission';
2023-04-18 23:36:26 +08:00
// 国际化
import i18n from '@/lang/index';
2024-01-20 22:09:15 +08:00
// vxeTable
import VXETable from 'vxe-table';
import 'vxe-table/lib/style.css';
2024-01-21 15:35:43 +08:00
VXETable.config({
zIndex: 999999
});
2024-01-20 22:09:15 +08:00
2023-04-02 01:01:56 +08:00
const app = createApp(App);
2024-01-19 18:26:18 +08:00
app.use(HighLight);
2023-04-02 01:01:56 +08:00
app.use(ElementIcons);
app.use(router);
app.use(store);
2023-04-18 23:36:26 +08:00
app.use(i18n);
2024-01-20 22:09:15 +08:00
app.use(VXETable);
2023-04-02 01:01:56 +08:00
app.use(plugins);
// 自定义指令
directive(app);
app.mount('#app');