mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
35 lines
932 B
TypeScript
35 lines
932 B
TypeScript
import {createApp} from 'vue'
|
|
|
|
import main from './main.vue'
|
|
import router from './router'
|
|
import {createPinia} from 'pinia'
|
|
import ElementPlus, {ElDialog} from 'element-plus';
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
import TableAbility from '@/components/table-ability.vue'
|
|
|
|
import './assets/font/all.css'
|
|
import 'element-plus/dist/index.css';
|
|
import './assets/css/global.scss';
|
|
import './assets/font/iconfont.css';
|
|
import '@/assets/css/custom-element.scss';
|
|
import '@/assets/css/animastore.css';
|
|
import '../permisstion';
|
|
|
|
const pinia = createPinia()
|
|
const app = createApp(main)
|
|
|
|
ElDialog.props.draggable.default = true
|
|
|
|
app.use(pinia)
|
|
|
|
app.use(router)
|
|
.use(ElementPlus) // ElementPlus 全局引入
|
|
|
|
app.component('el-dialog', ElDialog)
|
|
app.component('TableAbility', TableAbility)
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component)
|
|
}
|
|
|
|
app.mount('#app')
|