mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-27 04:09:51 +08:00
20 lines
493 B
JavaScript
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')
|
|
})
|