naive-ui/demo/init.js

27 lines
909 B
JavaScript
Raw Normal View History

2020-03-19 18:26:48 +08:00
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import VueRouter from 'vue-router'
2020-03-19 18:26:48 +08:00
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)
2020-03-19 18:26:48 +08:00
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)
2020-03-20 17:32:05 +08:00
export { Vue, i18n }