| | |
| | | |
| | | import Cookies from 'js-cookie' |
| | | |
| | | import ElementPlus from 'element-plus' |
| | | // import ElementPlus from 'element-plus' |
| | | 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 locale from 'element-plus/es/locale/lang/zh-cn' |
| | | |
| | | import '@/assets/styles/index.scss' // global css |
| | | |
| | |
| | | VxeUITable.setI18n('zh-CN', zhCN) |
| | | VxeUITable.setI18n('en-US', enUS) |
| | | const app = createApp(App) |
| | | |
| | | // 全局方法挂载 |
| | | app.config.globalProperties.useDict = useDict |
| | | app.config.globalProperties.download = download |
| | |
| | | directive(app) |
| | | |
| | | // 使用element-plus 并且设置全局的大小 |
| | | app.use(ElementPlus, { |
| | | locale: locale, |
| | | // 支持 large、default、small |
| | | size: Cookies.get('size') || 'default' |
| | | }) |
| | | // app.use(ElementPlus, { |
| | | // // 支持 large、default、small |
| | | // size: Cookies.get('size') || 'default' |
| | | // }) |
| | | app.use(VxeUIAll) |
| | | app.use(VxeUITable) |
| | | app.use(i18n) |