naive-ui/demo/index.dev.js
2022-01-05 02:20:22 +08:00

20 lines
493 B
JavaScript

import { createApp } from 'vue'
import naive, { NThemeEditor } from '../src/index'
import { installDemoComponents } from './setup'
import SiteRoot from './SiteRoot.vue'
import { routes } from './routes/routes'
import createDemoRouter from './routes/router'
const app = createApp(SiteRoot)
const router = createDemoRouter(app, routes)
app.use(router)
app.use(naive)
app.component('NThemeEditor', NThemeEditor)
installDemoComponents(app)
router.isReady().then(() => {
app.mount('#app')
})