mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
a4ec6e737d
* wip(theme-editor) * chore: make theme editor looks better * feat(theme-editor): use controlled overrides * fix(theme-editor): no invalid color * chore: update seemly to support keywords color * feat(theme-editor): add filter * refactor(theme-editor): use popover * fix(site): package bundled twice due to src code reference * docs(back-top): avoid collision with theme-editor
20 lines
489 B
JavaScript
20 lines
489 B
JavaScript
import { createApp } from 'vue'
|
|
import naive, { NThemeEditor } from 'naive-ui'
|
|
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')
|
|
})
|