13 lines
328 B
TypeScript
13 lines
328 B
TypeScript
import type { App } from 'vue'
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
|
export const elIcons = ElementPlusIconsVue
|
|
|
|
const install = (app: App): void => {
|
|
for (const [ key, component ] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component('ElIcon' + key, component)
|
|
}
|
|
}
|
|
|
|
export default {install}
|