| | |
| | | import 'element-plus/theme-chalk/src/message-box.scss'; |
| | | import 'element-plus/theme-chalk/src/notification.scss'; |
| | | |
| | | // 引入echarts |
| | | // import Echarts from 'vue-echarts' |
| | | import * as echarts from 'echarts' |
| | | |
| | | // dayjs plugin |
| | | import dayjs from 'dayjs'; |
| | | import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'; |
| | | import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'; |
| | | |
| | | dayjs.extend(isSameOrAfter); |
| | | dayjs.extend(isSameOrBefore); |
| | | |
| | | const app = createApp(App); |
| | | |
| | | app.config.globalProperties.$fm = timeUtil; |
| | |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | | app.component(key, component); |
| | | } |
| | | |
| | | // 使用组件 |
| | | // app.component('e-charts',Echarts) |
| | | // 全局挂载 echarts |
| | | app.config.globalProperties.$echarts = echarts |
| | | app |
| | | .use(pinia) |
| | | .use(router) |