naive-ui/demo/dev-index.js

24 lines
580 B
JavaScript
Raw Normal View History

import { createApp } from 'vue'
2020-10-26 15:13:05 +08:00
import { installDemoComponents } from './init'
// import debugRouteMixin from './routes/debug-route-mixin'
2020-03-18 13:42:48 +08:00
import hljs from './hljs'
import DemoRouterView from './DemoRouterView.vue'
import naive from '../../src/index'
2020-09-07 16:28:33 +08:00
import './font'
import { routes } from './routes/routes'
import createDemoRouter from './routes/router'
// debugRouteMixin(routes, childRoutes)
2020-06-18 01:33:55 +08:00
naive.setHljs(hljs)
2020-07-08 21:57:07 +08:00
const app = createApp(DemoRouterView)
const router = createDemoRouter(app, routes)
app.use(router)
app.use(naive)
installDemoComponents(app)
2020-07-08 21:57:07 +08:00
app.mount('#app')