naive-ui/demo/dev-index.js
2020-09-03 17:02:31 +08:00

26 lines
680 B
JavaScript

import { Vue, i18n } from './init'
import debugRouteMixin from './routes/debugRouteMixin'
import hljs from './hljs'
import demoRouterView from './DemoRouterView'
// import './styles/test-customize-style-scheme.scss' // test customize style scheme
import naive 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)
naive.setHljs(hljs)
Vue.use(naive)
new Vue({
...demoRouterView,
router,
i18n
}).$mount('#app')