naive-ui/demo/index.prod.js

20 lines
489 B
JavaScript
Raw Normal View History

import { createApp } from 'vue'
import naive, { NThemeEditor } from 'naive-ui'
2021-02-17 23:31:56 +08:00
import { installDemoComponents } from './setup'
2021-01-13 12:01:02 +08:00
import SiteRoot from './SiteRoot.vue'
import { routes } from './routes/routes'
import createDemoRouter from './routes/router'
2021-01-13 12:01:02 +08:00
const app = createApp(SiteRoot)
const router = createDemoRouter(app, routes)
app.use(router)
app.use(naive)
app.component('NThemeEditor', NThemeEditor)
installDemoComponents(app)
2020-07-08 21:57:07 +08:00
router.isReady().then(() => {
app.mount('#app')
})