| | |
| | | import { router } from './router'; |
| | | import App from './App.vue'; |
| | | import timeUtil from './utils/time-util'; |
| | | import DeepCopy from './utils/DeepCopy'; |
| | | |
| | | // import 'element-plus/dist/index.css'; |
| | | import './assets/main.css'; |
| | | |
| | | import { ElMessageBox, ElNotification, ElMessage } from 'element-plus'; |
| | | import 'element-plus/theme-chalk/src/overlay.scss'; |
| | | import 'element-plus/theme-chalk/src/message.scss'; |
| | | import 'element-plus/theme-chalk/src/message-box.scss'; |
| | |
| | | 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; |
| | | app.config.globalProperties.$deepCopy = DeepCopy.deepCopy; |
| | | app.config.globalProperties.$message = ElMessage |
| | | app.config.globalProperties.$notification = ElNotification |
| | | app.config.globalProperties.$messageBox = ElMessageBox |
| | | |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | | app.component(key, component); |