mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
26 lines
601 B
JavaScript
26 lines
601 B
JavaScript
|
|
import { Vue, i18n } from './init'
|
|
import debugRouteMixin from './routes/debug-route-mixin'
|
|
import hljs from './hljs'
|
|
import demoRouterView from './DemoRouterView'
|
|
import naive from '../src/index'
|
|
import '../src/_styles/index.scss'
|
|
import './font'
|
|
import { routes, childRoutes } from './routes/routes'
|
|
import createRouter from './routes/router'
|
|
import tusimpleTheme from '../themes/tusimple'
|
|
|
|
debugRouteMixin(routes, childRoutes)
|
|
const router = createRouter(Vue, routes)
|
|
|
|
naive.setHljs(hljs)
|
|
naive.use(tusimpleTheme)
|
|
|
|
Vue.use(naive)
|
|
|
|
new Vue({
|
|
...demoRouterView,
|
|
router,
|
|
i18n
|
|
}).$mount('#app')
|