naive-ui/demo/deploymentIndex.js

27 lines
637 B
JavaScript

import { Vue, i18n } from './init'
import hljs from './hljs'
import demoRouterView from './demoRouterView'
import naive from '../lib/index'
import '../lib/styles/index.css'
// import './styles/test-customize-style-scheme.scss' // test
import '../lib/styles/fonts/Lato.css'
import '../lib/styles/fonts/FiraCode.css'
import createRouter from './routes/router'
import { routes } from './routes/routes'
Vue.use(naive)
naive.setHljs(hljs)
// naive.setStyleSchemes({
// light: {
// primaryColor: 'rgb(255, 0, 0)'
// }
// })
const router = createRouter(Vue, routes)
new Vue({
...demoRouterView,
router,
i18n
}).$mount('#app')