naive-ui/demo/init.js
07akioni 8c10ccdef5 refactor: upgrade to vue3, make it work first
there are quite a lot of things to finish
1. Vue.prototype
2. $scopedSlots
3. functional
4. i18n
5. virtual scroll
...
2020-09-08 22:04:45 +08:00

22 lines
866 B
JavaScript

import { createI18n } from 'vue-i18n'
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'
export function installDemoComponents (app) {
app.component('ComponentDemo', ComponentDemo)
app.component('ComponentDemos', ComponentDemos)
app.component('DocumentationWrapper', DocumentationWrapper)
app.component('ComponentDocumentation', ComponentDocumentation)
app.component('EditOnGithubButton', EditOnGithubButton)
app.component('EditOnGithubHeader', EditOnGithubHeader)
}
export const i18n = createI18n({
locale: 'zh-CN'
})