| | |
| | | import 'element-plus/dist/index.css' |
| | | import 'element-plus/theme-chalk/dark/css-vars.css' |
| | | import locale from 'element-plus/es/locale/lang/zh-cn' |
| | | import "default-passive-events"; |
| | | |
| | | import '@/assets/styles/index.scss' // global css |
| | | |
| | |
| | | import ImagePreview from "@/components/ImagePreview" |
| | | // 字典标签组件 |
| | | import DictTag from '@/components/DictTag' |
| | | import {summarizeTable} from "@/utils/summarizeTable.js"; |
| | | import {getCurrentDate} from "@/utils/getCurrentDate.js"; |
| | | |
| | | const app = createApp(App) |
| | | |
| | |
| | | app.config.globalProperties.addDateRange = addDateRange |
| | | app.config.globalProperties.selectDictLabel = selectDictLabel |
| | | app.config.globalProperties.selectDictLabels = selectDictLabels |
| | | app.config.globalProperties.summarizeTable = summarizeTable |
| | | app.config.globalProperties.getCurrentDate = getCurrentDate |
| | | |
| | | // 全局组件挂载 |
| | | app.component('DictTag', DictTag) |
| | |
| | | // 支持 large、default、small |
| | | size: Cookies.get('size') || 'default' |
| | | }) |
| | | app._context.components.ElDialog.props.closeOnClickModal.default = false |
| | | |
| | | app.mount('#app') |