2023-12-21 16:42:39 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
|
|
|
|
import pinia from '@/stores/index'
|
|
|
|
|
import { registerIcons } from '@/utils/common'
|
|
|
|
|
import mitt from 'mitt'
|
2023-12-27 15:06:57 +08:00
|
|
|
import VXETable from 'vxe-table'
|
2023-12-27 16:36:10 +08:00
|
|
|
import XEUtils from 'xe-utils'
|
2023-12-27 15:06:57 +08:00
|
|
|
import 'vxe-table/lib/style.css'
|
2023-12-21 16:42:39 +08:00
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
|
import 'element-plus/dist/index.css'
|
|
|
|
|
import 'element-plus/theme-chalk/display.css'
|
2023-12-29 14:46:20 +08:00
|
|
|
import '@fortawesome/fontawesome-free/css/all.css'
|
2023-12-21 16:42:39 +08:00
|
|
|
import '@/styles/index.scss'
|
2023-12-26 08:45:15 +08:00
|
|
|
import '@/assets/font/iconfont.css'
|
2024-01-17 14:22:34 +08:00
|
|
|
import { ElDialog } from 'element-plus'
|
2024-12-26 15:56:32 +08:00
|
|
|
import ExcelJS from 'exceljs'
|
|
|
|
|
import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx'
|
|
|
|
|
VXETable.use(VXETablePluginExportXLSX, {
|
|
|
|
|
ExcelJS
|
|
|
|
|
})
|
2023-12-27 16:36:10 +08:00
|
|
|
window.XEUtils = XEUtils
|
2024-01-17 14:22:34 +08:00
|
|
|
|
|
|
|
|
|
2023-12-21 16:42:39 +08:00
|
|
|
const app = createApp(App)
|
|
|
|
|
|
|
|
|
|
app.use(router)
|
|
|
|
|
app.use(pinia)
|
2024-01-17 14:22:34 +08:00
|
|
|
app.use(ElementPlus);
|
|
|
|
|
(app._context.components.ElDialog as typeof ElDialog).props.closeOnClickModal.default = false
|
2023-12-27 15:06:57 +08:00
|
|
|
app.use(VXETable)
|
2023-12-21 16:42:39 +08:00
|
|
|
registerIcons(app) // icons
|
|
|
|
|
|
|
|
|
|
app.mount('#app')
|
|
|
|
|
app.config.globalProperties.eventBus = mitt()
|