naive-ui/demo/devIndex.js

22 lines
516 B
JavaScript
Raw Normal View History

2020-03-20 17:32:05 +08:00
import { Vue, i18n } from './init'
2020-03-19 18:26:48 +08:00
import debugRouteMixin from './routes/debugRouteMixin'
2020-03-18 13:42:48 +08:00
import hljs from './hljs'
import demoRouterView from './demoRouterView'
2020-02-12 13:44:53 +08:00
import NaiveUI from '../src/index'
2020-05-16 21:08:06 +08:00
import '../src/_styles/index.scss'
2020-03-20 17:32:05 +08:00
import { routes, childRoutes } from './routes/routes'
import createRouter from './routes/router'
2020-03-19 18:26:48 +08:00
debugRouteMixin(routes, childRoutes)
2020-03-20 17:32:05 +08:00
const router = createRouter(Vue, routes)
2020-02-12 13:44:53 +08:00
Vue.use(NaiveUI)
NaiveUI.setHljs(hljs)
2019-06-26 20:16:11 +08:00
new Vue({
...demoRouterView,
2020-03-19 18:26:48 +08:00
router,
i18n
2019-06-26 20:16:11 +08:00
}).$mount('#app')