naive-ui/demo/dev-design-index.js
2020-09-07 16:28:33 +08:00

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