naive-ui/demo/index.ts-prod.js
2020-12-07 16:26:33 +08:00

23 lines
544 B
JavaScript

import { createApp } from 'vue'
import naive from 'naive-ui'
import { installDemoComponents } from './init'
import hljs from './hljs'
import DemoRouterView from './DemoRouterView.vue'
import './font'
import { routes } from './routes/routes'
import createDemoRouter from './routes/router'
import tusimpleTheme from '../themes/tusimple'
naive.setHljs(hljs)
naive.use(tusimpleTheme)
const app = createApp(DemoRouterView)
const router = createDemoRouter(app, routes)
app.use(router)
app.use(naive)
installDemoComponents(app)
app.mount('#app')