test_lgq/web/plugins/element.plus.ts
2024-01-24 17:36:08 +08:00

7 lines
242 B
TypeScript

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
export default defineNuxtPlugin((NuxtApp) => {
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
NuxtApp.vueApp.component(key, component)
}
})