39 lines
944 B
TypeScript
39 lines
944 B
TypeScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import App from './App.vue'
|
|
|
|
// 引入路由
|
|
import router from './router'
|
|
|
|
// 引入element-ui组件
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/theme-chalk/src/index.scss'
|
|
import 'element-plus/theme-chalk/dark/css-vars.css'
|
|
import 'dayjs/locale/zh-cn'
|
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
|
|
// 引入日历组件
|
|
import VCalendar from 'v-calendar'
|
|
import 'v-calendar/style.css'
|
|
|
|
// 引入font-awesome
|
|
import 'font-awesome/css/font-awesome.min.css'
|
|
import '@fortawesome/fontawesome-free/css/all.css'
|
|
|
|
import 'animate.css'
|
|
|
|
// 注册svg-icon
|
|
import 'virtual:svg-icons-register'
|
|
|
|
// 创建Vue3实例
|
|
const app = createApp(App)
|
|
// 使用路由
|
|
app.use(router)
|
|
// 使用Pinia 需要ts 4.5以上
|
|
app.use(createPinia())
|
|
// 使用Element UI Plus
|
|
app.use(ElementPlus, { locale: zhCn })
|
|
app.use(VCalendar, {})
|
|
// 挂载到根组件上
|
|
app.mount('#app')
|