2018-03-20 11:06:04 +00:00
|
|
|
|
<script>
|
2019-01-12 03:33:27 +00:00
|
|
|
|
import Basic from './basic';
|
|
|
|
|
import All from './all';
|
|
|
|
|
import CN from '../index.zh-CN.md';
|
|
|
|
|
import US from '../index.en-US.md';
|
2018-03-21 05:31:55 +00:00
|
|
|
|
const md = {
|
|
|
|
|
cn: `## API
|
|
|
|
|
|
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
|
| locale | 语言包配置,语言包可到 \`antd/lib/locale-provider/\` 目录下寻找 | object | - |
|
|
|
|
|
`,
|
|
|
|
|
us: `## API
|
|
|
|
|
|
|
|
|
|
| Property | Description | Type | Default |
|
|
|
|
|
| -------- | ----------- | ---- | ------- |
|
|
|
|
|
| locale | language package setting, you can find the packages in this path: \`antd/lib/locale-provider/\` | object | - |
|
|
|
|
|
`,
|
2019-01-12 03:33:27 +00:00
|
|
|
|
};
|
2018-03-20 11:06:04 +00:00
|
|
|
|
export default {
|
|
|
|
|
category: 'Components',
|
|
|
|
|
subtitle: '国际化',
|
|
|
|
|
cols: 1,
|
|
|
|
|
type: 'Other',
|
|
|
|
|
title: 'LocaleProvider',
|
2019-09-28 12:45:07 +00:00
|
|
|
|
render() {
|
2018-03-20 11:06:04 +00:00
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<api>
|
2019-09-28 12:45:07 +00:00
|
|
|
|
<CN slot="cn" />
|
|
|
|
|
<US />
|
2018-03-20 11:06:04 +00:00
|
|
|
|
</api>
|
|
|
|
|
<Basic />
|
|
|
|
|
<All />
|
2019-09-28 12:45:07 +00:00
|
|
|
|
<md cn={md.cn} us={md.us} />
|
2018-03-20 11:06:04 +00:00
|
|
|
|
</div>
|
2019-01-12 03:33:27 +00:00
|
|
|
|
);
|
2018-03-20 11:06:04 +00:00
|
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
|
};
|
2018-03-20 11:06:04 +00:00
|
|
|
|
</script>
|