feat:移植工程

This commit is contained in:
2025-06-10 16:20:21 +08:00
commit 829df0b1d1
356 changed files with 43395 additions and 0 deletions

48
src/main.ts Normal file
View File

@@ -0,0 +1,48 @@
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'
// 引入粒子特效
// import Particles from '@tsparticles/vue3'
// import { loadSlim } from '@tsparticles/slim'
// 引入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(Particles, {
// init: async (engine: any) => {
// // 加载精简版
// await loadSlim(engine)
// }
// })
app.use(VCalendar, {})
// 挂载到根组件上
app.mount('#app')