2023-12-05 13:23:01 +08:00
|
|
|
import '@/css/tailwind.css'
|
|
|
|
|
import '@/css/index.less'
|
|
|
|
|
import '@/css/font.less'
|
|
|
|
|
import '@/assets/directionFonts/iconfont.css'
|
|
|
|
|
|
|
|
|
|
import { Directive, useComponentPlugin } from 'open-data-v/designer'
|
|
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
|
|
|
|
|
import router from '@/router'
|
|
|
|
|
import store from '@/store'
|
|
|
|
|
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import CodeEditor from './components/CodeEditor'
|
|
|
|
|
import { useLoadComponent } from './load'
|
|
|
|
|
|
|
|
|
|
const componentPlugin = useComponentPlugin({ codeEditorComponet: CodeEditor })
|
|
|
|
|
const AsyncComponent = useLoadComponent()
|
2023-12-07 10:57:06 +08:00
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
|
import 'element-plus/dist/index.css'
|
2023-12-05 13:23:01 +08:00
|
|
|
const app = createApp(App)
|
|
|
|
|
app.use(router)
|
|
|
|
|
app.use(Directive)
|
|
|
|
|
app.use(AsyncComponent)
|
2023-12-07 10:57:06 +08:00
|
|
|
app.use(ElementPlus)
|
2023-12-05 13:23:01 +08:00
|
|
|
// 注册状态管理器
|
|
|
|
|
app.use(store)
|
|
|
|
|
app.use(componentPlugin)
|
|
|
|
|
|
|
|
|
|
// 注册路由模块
|
|
|
|
|
|
|
|
|
|
app.mount('#app', true)
|