aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src/main.ts')
-rw-r--r--src-vue/src/main.ts8
1 files changed, 8 insertions, 0 deletions
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')