mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +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
24 lines
651 B
JavaScript
24 lines
651 B
JavaScript
import { createApp } from 'vue'
|
|
import naive, { NThemeEditor } from '../src/index'
|
|
import { installDemoComponents } from './setup'
|
|
import SiteRoot from './SiteRoot.vue'
|
|
import { routes, zhDocRoutes, enDocRoutes } from './routes/routes'
|
|
import createDemoRouter from './routes/router'
|
|
|
|
import debugRouteMixin from './routes/debug-route-mixin'
|
|
debugRouteMixin(routes, zhDocRoutes)
|
|
debugRouteMixin(routes, enDocRoutes)
|
|
|
|
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')
|
|
})
|