提交代码
This commit is contained in:
27
src/main.ts
Normal file
27
src/main.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import './assets/main.css'
|
||||
import router from './router/index'
|
||||
import MyButton from '@/components/test/my-button/index.vue'
|
||||
import MyInput from '@/components/test/my-input/index.vue'
|
||||
import CustomDemo from '@/components/test/custom-demo/index.vue'
|
||||
import PieCharts from '@/components/test/pie-charts/index.vue'
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
const pinia = createPinia()
|
||||
|
||||
const app = createApp(App)
|
||||
app.use(router)
|
||||
app.use(pinia)
|
||||
app.use(ElementPlus)
|
||||
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||||
app.component(key, component)
|
||||
}
|
||||
|
||||
app.component('my-input', MyInput)
|
||||
app.component('my-button', MyButton)
|
||||
app.component('custom-demo', CustomDemo)
|
||||
app.component('pie-charts', PieCharts)
|
||||
app.mount('#app')
|
||||
Reference in New Issue
Block a user