From 060b41efa856d3a822c876e54bd1b3a45e8366e2 Mon Sep 17 00:00:00 2001 From: niko <644506165@qq.com> Date: Mon, 6 Nov 2017 20:19:54 -0600 Subject: [PATCH] translate AvatarList (#123) --- src/components/AvatarList/demo/simple.md | 6 +++-- src/components/AvatarList/index.en-US.md | 22 +++++++++++++++++++ .../AvatarList/{index.md => index.zh-CN.md} | 4 +--- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 src/components/AvatarList/index.en-US.md rename src/components/AvatarList/{index.md => index.zh-CN.md} (92%) diff --git a/src/components/AvatarList/demo/simple.md b/src/components/AvatarList/demo/simple.md index f531e162..e941aea9 100644 --- a/src/components/AvatarList/demo/simple.md +++ b/src/components/AvatarList/demo/simple.md @@ -1,9 +1,11 @@ --- order: 0 -title: 基础样例 +title: + zh-CN: 基础样例 + en-US: Basic Usage --- -简单的用户头像列表。 +Simplest of usage. ````jsx import AvatarList from 'ant-design-pro/lib/AvatarList'; diff --git a/src/components/AvatarList/index.en-US.md b/src/components/AvatarList/index.en-US.md new file mode 100644 index 00000000..58daaf96 --- /dev/null +++ b/src/components/AvatarList/index.en-US.md @@ -0,0 +1,22 @@ +--- +title: AvatarList +order: 1 +cols: 1 +--- + +A list of user's avatar for project or group member list frequently. If a large or small AvatarList is desired, set the `size` property to either `large` or `small` and `mini` respectively. Omit the `size` property for a AvatarList with the default size. + +## API + +### AvatarList + +| Property | Description | Type | Default | +|----------|------------------------------------------|-------------|-------| +| size | size of list | `large`、`small` 、`mini`, `default` | `default` | + +### AvatarList.Item + +| Property | Description | Type | Default | +|----------|------------------------------------------|-------------|-------| +| tips | title tips for avatar item | ReactNode\/string | - | +| src | the address of the image for an image avatar | string | - | diff --git a/src/components/AvatarList/index.md b/src/components/AvatarList/index.zh-CN.md similarity index 92% rename from src/components/AvatarList/index.md rename to src/components/AvatarList/index.zh-CN.md index dc0f7518..c229a5df 100644 --- a/src/components/AvatarList/index.md +++ b/src/components/AvatarList/index.zh-CN.md @@ -1,7 +1,5 @@ --- -title: - en-US: AvatarList - zh-CN: 用户头像列表 +title: AvatarList subtitle: 用户头像列表 order: 1 cols: 1 -- GitLab