naive-ui/demo/index.ts-prod.js

23 lines
548 B
JavaScript
Raw Normal View History

2020-10-08 04:14:14 +08:00
import { createApp } from 'vue'
import { installDemoComponents } from './init'
2020-03-18 13:42:48 +08:00
import hljs from './hljs'
2020-11-11 20:48:42 +08:00
import DemoRouterView from './DemoRouterView.vue'
2020-10-08 04:14:14 +08:00
import naive from '../src/index'
2020-09-07 16:28:33 +08:00
import './font'
2020-10-08 02:55:40 +08:00
import { routes } from './routes/routes'
2020-10-08 04:14:14 +08:00
import createDemoRouter from './routes/router'
2020-08-04 21:45:05 +08:00
import tusimpleTheme from '../themes/tusimple'
2020-06-18 01:33:55 +08:00
naive.setHljs(hljs)
2020-08-04 21:45:05 +08:00
naive.use(tusimpleTheme)
2020-02-12 13:44:53 +08:00
2020-10-08 04:14:14 +08:00
const app = createApp(DemoRouterView)
2020-07-08 21:57:07 +08:00
2020-10-08 04:14:14 +08:00
const router = createDemoRouter(app, routes)
2020-10-08 02:55:40 +08:00
2020-10-08 04:14:14 +08:00
app.use(router)
app.use(naive)
installDemoComponents(app)
app.mount('#app')