升级element版本 修改icon

This commit is contained in:
piexlmax
2021-12-10 19:07:15 +08:00
parent 255dba330d
commit 8791206a5c
33 changed files with 1402 additions and 924 deletions
+10
View File
@@ -1,11 +1,21 @@
import config from './config'
import { emitter } from '@/utils/bus.js'
// 统一导入el-icon图标
import * as ElIconModules from '@element-plus/icons'
// 导入转换图标名称的函数
const closeThisPage = () => {
emitter.emit('closeThisPage')
}
export const register = (app) => {
// 统一注册el-icon图标
for (const iconName in ElIconModules) {
app.component(iconName, ElIconModules[iconName])
}
app.config.globalProperties.$GIN_VUE_ADMIN = config
app.config.globalProperties.$CloseThisPage = closeThisPage
}