ant-design-vue/components/config-provider/demo/index.vue

33 lines
645 B
Vue
Raw Normal View History

2019-01-02 12:13:25 +00:00
<script>
2019-01-12 03:33:27 +00:00
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
2019-01-02 12:13:25 +00:00
const md = {
cn: `# ConfigProvider 全局化配置
为组件提供统一的全局化配置`,
us: `# ConfigProvider
\`ConfigProvider\` provides a uniform configuration support for components.
`,
2019-01-12 03:33:27 +00:00
};
2019-01-02 12:13:25 +00:00
export default {
category: 'Components',
subtitle: '全局化配置',
cols: 1,
type: '其他',
title: 'ConfigProvider',
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<api>
<template slot='cn'>
<CN/>
</template>
<US/>
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2019-01-02 12:13:25 +00:00
},
2019-01-12 03:33:27 +00:00
};
2019-01-02 12:13:25 +00:00
</script>