mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
23 lines
579 B
JavaScript
23 lines
579 B
JavaScript
import { createApp } from 'vue'
|
|
import { installDemoComponents } from './init'
|
|
import debugRouteMixin from './routes/debug-route-mixin'
|
|
import hljs from './hljs'
|
|
import DemoRouterView from './DemoRouterView'
|
|
import naive from '../src/index'
|
|
import './font'
|
|
import { routes, childRoutes } from './routes/routes'
|
|
import createDemoRouter from './routes/router'
|
|
|
|
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')
|