10 lines
295 B
TypeScript
10 lines
295 B
TypeScript
import { type App } from "vue"
|
|
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
|
|
|
|
export function loadElementPlusIcon(app: App) {
|
|
/** 注册所有 Element Plus Icon */
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
}
|