mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
24 lines
584 B
JavaScript
24 lines
584 B
JavaScript
import { createApp } from 'vue'
|
|
import { installDemoComponents } from './init'
|
|
import hljs from './hljs'
|
|
import DemoRouterView from './DemoRouterView.vue'
|
|
import naive from '../src/index'
|
|
import './font'
|
|
import { routes, childRoutes } from './routes/routes'
|
|
import createDemoRouter from './routes/router'
|
|
|
|
import debugRouteMixin from './routes/debug-route-mixin'
|
|
debugRouteMixin(routes, childRoutes)
|
|
|
|
naive.setHljs(hljs)
|
|
|
|
const app = createApp(DemoRouterView)
|
|
|
|
const router = createDemoRouter(app, routes)
|
|
|
|
app.use(router)
|
|
app.use(naive)
|
|
installDemoComponents(app)
|
|
|
|
app.mount('#app')
|