naive-ui/demo/index.ts-dev.js
2021-01-13 12:31:41 +08:00

23 lines
576 B
JavaScript

import { createApp } from 'vue'
import { installDemoComponents } from './init'
import SiteRoot from './SiteRoot.vue'
import naive from '../src/index'
import { routes, childRoutes } from './routes/routes'
import createDemoRouter from './routes/router'
import tusimpleTheme from '../themes/tusimple'
import debugRouteMixin from './routes/debug-route-mixin'
debugRouteMixin(routes, childRoutes)
naive.use(tusimpleTheme)
const app = createApp(SiteRoot)
const router = createDemoRouter(app, routes)
app.use(router)
app.use(naive)
installDemoComponents(app)
app.mount('#app')