2019-06-03 13:47:12 +08:00
|
|
|
|
2020-09-08 22:04:45 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
import { installDemoComponents, i18n } from './init'
|
2020-09-04 01:19:54 +08:00
|
|
|
import debugRouteMixin from './routes/debug-route-mixin'
|
2020-03-18 13:42:48 +08:00
|
|
|
import hljs from './hljs'
|
2020-09-08 22:04:45 +08:00
|
|
|
import DemoRouterView from './DemoRouterView'
|
2020-06-18 01:33:55 +08:00
|
|
|
import naive from '../src/index'
|
2020-09-07 16:28:33 +08:00
|
|
|
import './font'
|
2020-03-20 17:32:05 +08:00
|
|
|
import { routes, childRoutes } from './routes/routes'
|
2020-09-08 22:04:45 +08:00
|
|
|
import createDemoRouter from './routes/router'
|
2019-06-03 13:47:12 +08:00
|
|
|
|
2020-03-19 18:26:48 +08:00
|
|
|
debugRouteMixin(routes, childRoutes)
|
2020-06-18 01:33:55 +08:00
|
|
|
naive.setHljs(hljs)
|
2020-07-08 21:57:07 +08:00
|
|
|
|
2020-09-08 22:04:45 +08:00
|
|
|
const app = createApp(DemoRouterView)
|
|
|
|
|
|
|
|
const router = createDemoRouter(app, routes)
|
|
|
|
|
|
|
|
app.use(router)
|
|
|
|
app.use(naive)
|
|
|
|
app.use(i18n)
|
|
|
|
installDemoComponents(app)
|
2020-07-08 21:57:07 +08:00
|
|
|
|
2020-09-08 22:04:45 +08:00
|
|
|
app.mount('#app')
|