mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-11 02:17:56 +08:00
初始化admin pc端
This commit is contained in:
11
admin/src/plugins/element.ts
Normal file
11
admin/src/plugins/element.ts
Normal 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])
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user