mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
8c10ccdef5
there are quite a lot of things to finish 1. Vue.prototype 2. $scopedSlots 3. functional 4. i18n 5. virtual scroll ...
22 lines
866 B
JavaScript
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'
|
|
})
|