naive-ui/demo/index.prod.js
2020-11-02 21:41:40 +08:00

21 lines
475 B
JavaScript

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