From 21784ec3d747000c18b529b6569e1d6941a0c338 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Fri, 23 Sep 2022 18:02:43 +0200 Subject: build: add element-plus-icons dependency --- src-vue/src/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src-vue/src') diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts index a2d297be..048f8f30 100644 --- a/src-vue/src/main.ts +++ b/src-vue/src/main.ts @@ -1,6 +1,8 @@ import { createApp } from 'vue' import App from './App.vue' import ElementPlus from "element-plus"; +import * as ElementPlusIconsVue from '@element-plus/icons-vue' + // styles import 'element-plus/theme-chalk/index.css'; @@ -8,4 +10,10 @@ import './style.css' const app = createApp(App); app.use(ElementPlus); + +// icons +for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component); +} + app.mount('#app') -- cgit v1.2.3