mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-03 04:21:34 +08:00
8c10ccdef5
there are quite a lot of things to finish 1. Vue.prototype 2. $scopedSlots 3. functional 4. i18n 5. virtual scroll ...
26 lines
635 B
JavaScript
26 lines
635 B
JavaScript
|
|
import { createApp } from 'vue'
|
|
import { installDemoComponents, i18n } from './init'
|
|
import debugRouteMixin from './routes/debug-route-mixin'
|
|
import hljs from './hljs'
|
|
import DemoRouterView from './DemoRouterView'
|
|
import naive from '../src/index'
|
|
import '../src/_styles/index.scss'
|
|
import './font'
|
|
import { routes, childRoutes } from './routes/routes'
|
|
import createDemoRouter from './routes/router'
|
|
|
|
debugRouteMixin(routes, childRoutes)
|
|
naive.setHljs(hljs)
|
|
|
|
const app = createApp(DemoRouterView)
|
|
|
|
const router = createDemoRouter(app, routes)
|
|
|
|
app.use(router)
|
|
app.use(naive)
|
|
app.use(i18n)
|
|
installDemoComponents(app)
|
|
|
|
app.mount('#app')
|