whychdw
2024-05-27 a8888d8db186ed398d306f58c89a395b6e7a8df8
1
2
3
4
5
6
7
8
9
import type { App } from "vue";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
 
// 注册所有图标
export function setupElIcons(app: App<Element>) {
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(key, component);
    }
}