20 lines
511 B
TypeScript
Executable File
20 lines
511 B
TypeScript
Executable File
import * as ElementPlusIcons from '@element-plus/icons-vue'
|
|
//@ts-ignore
|
|
import localIconsName from 'virtual:svg-icons-names'
|
|
|
|
export const LOCAL_ICON_PREFIX = 'local-icon-'
|
|
export const EL_ICON_PREFIX = 'el-icon-'
|
|
|
|
const elIconsName: string[] = []
|
|
|
|
for (const [, component] of Object.entries(ElementPlusIcons)) {
|
|
elIconsName.push(`${EL_ICON_PREFIX}${component.name}`)
|
|
}
|
|
|
|
export function getElementPlusIconNames() {
|
|
return elIconsName
|
|
}
|
|
export function getLocalIconNames() {
|
|
return localIconsName
|
|
}
|