naive-ui/demo/devIndex.js

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')