diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-09-23 18:02:43 +0200 |
---|---|---|
committer | Remy Raes <raes.remy@gmail.com> | 2022-09-23 18:02:43 +0200 |
commit | 21784ec3d747000c18b529b6569e1d6941a0c338 (patch) | |
tree | b66319abaf85c947cf4650c2cc3796b5c883e22f /src-vue/src | |
parent | 919ce45c832f421dc90432962aad09c8d608cddf (diff) | |
download | FlightCore-21784ec3d747000c18b529b6569e1d6941a0c338.tar.gz FlightCore-21784ec3d747000c18b529b6569e1d6941a0c338.zip |
build: add element-plus-icons dependency
Diffstat (limited to 'src-vue/src')
-rw-r--r-- | src-vue/src/main.ts | 8 |
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') |