naive-ui/demo/index.prod.js
07akioni a4ec6e737d feat(theme-editor) (#25)
* 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
2021-03-30 02:25:22 +08:00

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')
})