mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
24 lines
600 B
JavaScript
24 lines
600 B
JavaScript
|
|
import { Vue, i18n } from './init'
|
|
import debugRouteMixin from './routes/debugRouteMixin'
|
|
import hljs from './hljs'
|
|
import demoRouterView from './demoRouterView'
|
|
import NaiveUI from '../src/index'
|
|
import '../src/_styles/index.scss'
|
|
import '../src/_styles/fonts/Lato.scss'
|
|
import '../src/_styles/fonts/FiraCode.scss'
|
|
import { routes, childRoutes } from './routes/routes'
|
|
import createRouter from './routes/router'
|
|
|
|
debugRouteMixin(routes, childRoutes)
|
|
const router = createRouter(Vue, routes)
|
|
|
|
Vue.use(NaiveUI)
|
|
NaiveUI.setHljs(hljs)
|
|
|
|
new Vue({
|
|
...demoRouterView,
|
|
router,
|
|
i18n
|
|
}).$mount('#app')
|