mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-03 04:21:34 +08:00
27 lines
909 B
JavaScript
27 lines
909 B
JavaScript
import Vue from 'vue'
|
|
import VueI18n from 'vue-i18n'
|
|
import VueRouter from 'vue-router'
|
|
import ComponentDemo from './utils/ComponentDemo'
|
|
import ComponentDemos from './utils/ComponentDemos'
|
|
import ComponentDocumentation from './utils/ComponentDocumentation'
|
|
import DocumentationWrapper from './utils/DocumentationWrapper'
|
|
import EditOnGithubButton from './utils/EditOnGithubButton'
|
|
import EditOnGithubHeader from './utils/EditOnGithubHeader'
|
|
import './styles/demo.scss'
|
|
|
|
Vue.use(VueI18n)
|
|
Vue.use(VueRouter)
|
|
|
|
const i18n = new VueI18n({
|
|
locale: 'zh-CN'
|
|
})
|
|
|
|
Vue.component('ComponentDemo', ComponentDemo)
|
|
Vue.component('ComponentDemos', ComponentDemos)
|
|
Vue.component('DocumentationWrapper', DocumentationWrapper)
|
|
Vue.component('ComponentDocumentation', ComponentDocumentation)
|
|
Vue.component('EditOnGithubButton', EditOnGithubButton)
|
|
Vue.component('EditOnGithubHeader', EditOnGithubHeader)
|
|
|
|
export { Vue, i18n }
|