初始化admin pc端

This commit is contained in:
Mrtangl
2022-04-08 10:42:44 +08:00
parent d9c9f27530
commit 19665b64fb
137 changed files with 11991 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { App } from '@vue/runtime-core'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElIcons from '@element-plus/icons-vue'
export default (app: App<Element>) => {
app.use(ElementPlus, { zIndex: 3000, locale: zhCn })
// 统一注册Icon图标
Object.keys(ElIcons).forEach(item => {
app.component(item, ElIcons[item as keyof typeof ElIcons])
})
}