mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
6453b90043
* feat(vite-doc): add vite md plugin * fixed(site-vite): merge conflicts * fix(vite-doc): some bug in vue rerender,use key to advoid * feat(vite-doc): finished doc * fix(vite-doc): import path should be same as normal * chore(vite-doc): remove useless code Co-authored-by: Lecong Zhang <50313260+tskirby@users.noreply.github.com>
21 lines
889 B
JavaScript
21 lines
889 B
JavaScript
import { createI18n } from 'vue-i18n'
|
|
import ComponentDemo from './utils/ComponentDemo.vue'
|
|
import ComponentDemos from './utils/ComponentDemos.vue'
|
|
import ComponentDocumentation from './utils/ComponentDocumentation.vue'
|
|
import DocumentationWrapper from './utils/DocumentationWrapper.vue'
|
|
import EditOnGithubButton from './utils/EditOnGithubButton.vue'
|
|
import EditOnGithubHeader from './utils/EditOnGithubHeader.vue'
|
|
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'
|
|
})
|