大屏项目初始化

This commit is contained in:
2026-02-24 23:26:41 +08:00
commit 412e2ac1f7
236 changed files with 5907 additions and 0 deletions

26
screen-vue/src/main.js Normal file
View File

@@ -0,0 +1,26 @@
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import VScaleScreen from 'v-scale-screen'
import * as echarts from 'echarts'
const app = createApp(App)
// 注册路由
app.use(router)
app.use(ElementPlus, {
locale: zhCn,
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.use(VScaleScreen)
app.config.globalProperties.$echarts = echarts
app.mount('#app')