rax-medical/src/main.ts

35 lines
932 B
TypeScript
Raw Normal View History

2024-05-17 12:06:29 +08:00
import {createApp} from 'vue'
2023-11-10 17:45:10 +08:00
import main from './main.vue'
import router from './router'
2024-05-17 12:06:29 +08:00
import {createPinia} from 'pinia'
import ElementPlus, {ElDialog} from 'element-plus';
2023-11-10 17:45:10 +08:00
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
2023-12-27 16:49:37 +08:00
import TableAbility from '@/components/table-ability.vue'
2023-11-10 17:45:10 +08:00
2024-11-13 13:17:04 +08:00
import './assets/font/all.css'
2023-11-10 17:45:10 +08:00
import 'element-plus/dist/index.css';
import './assets/css/global.scss';
2023-12-14 18:29:40 +08:00
import './assets/font/iconfont.css';
2024-03-31 13:13:41 +08:00
import '@/assets/css/custom-element.scss';
import '@/assets/css/animastore.css';
import '../permisstion';
2023-11-10 17:45:10 +08:00
2023-12-14 18:29:40 +08:00
const pinia = createPinia()
2024-05-17 12:06:29 +08:00
const app = createApp(main)
2023-12-14 18:29:40 +08:00
2023-12-28 10:39:36 +08:00
ElDialog.props.draggable.default = true
2023-12-14 18:29:40 +08:00
app.use(pinia)
2023-11-10 17:45:10 +08:00
app.use(router)
.use(ElementPlus) // ElementPlus 全局引入
2023-12-28 10:39:36 +08:00
app.component('el-dialog', ElDialog)
2023-12-27 16:49:37 +08:00
app.component('TableAbility', TableAbility)
2023-11-10 17:45:10 +08:00
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
2024-05-17 12:06:29 +08:00
app.component(key, component)
2023-11-10 17:45:10 +08:00
}
app.mount('#app')