aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/main.ts
blob: 0ac31a2d3e673be1a06cc0534f406716cf9c1861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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';
import './style.css'
import { store } from './plugins/store';

const app = createApp(App);
app.use(ElementPlus);

// icons
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}

// style
app.use( store, '$store' );

app.mount('#app')