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

33 lines
647 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',
2019-09-28 12:45:07 +00:00
render() {
2019-01-02 12:13:25 +00:00
return (
<div>
2019-09-28 12:45:07 +00:00
<md cn={md.cn} us={md.us} />
2019-01-02 12:13:25 +00:00
<api>
2019-09-28 12:45:07 +00:00
<template slot="cn">
<CN />
2019-01-02 12:13:25 +00:00
</template>
2019-09-28 12:45:07 +00:00
<US />
2019-01-02 12:13:25 +00:00
</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>