naive-ui/demo/dev-design-index.js
2020-09-04 01:19:54 +08:00

28 lines
754 B
JavaScript

import { Vue, i18n } from './init'
import debugRouteMixin from './routes/debug-route-mixin'
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'
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')