From e40961860013f33734a6573553ee2842a309f308 Mon Sep 17 00:00:00 2001 From: ilanus Date: Fri, 2 Nov 2018 09:47:01 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20update=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/comment/index.en-US.md | 8 ++++---- components/comment/index.zh-CN.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/comment/index.en-US.md b/components/comment/index.en-US.md index 482bee5cf4..f5b97edb87 100644 --- a/components/comment/index.en-US.md +++ b/components/comment/index.en-US.md @@ -16,8 +16,8 @@ Comments can be used to enable discussions on an entity for example page, blog p | Property | Description | Type | Default | | -------- | ----------- | ---- | ------- | | actions | List of action items rendered below the comment content | Array | - | -| author | The element to display as the comment author | ReactNode | - | -| avatar | The element to display as the comment avatar - generally an antd `Avatar` | ReactNode | - | +| author | The element to display as the comment author | string\|ReactNode | - | +| avatar | The element to display as the comment avatar - generally an antd `Avatar` or src | string\|ReactNode | - | | children | Nested comments should be provided as children of the Comment | ReactNode | - | -| content | The main content of the comment | ReactNode | - | -| datetime | A datetime element containing the time to be displayed | ReactNode | - | +| content | The main content of the comment | string\|ReactNode | - | +| datetime | A datetime element containing the time to be displayed | string\|ReactNode | - | diff --git a/components/comment/index.zh-CN.md b/components/comment/index.zh-CN.md index 7f46e5a2cf..505880855a 100644 --- a/components/comment/index.zh-CN.md +++ b/components/comment/index.zh-CN.md @@ -17,8 +17,8 @@ cols: 1 | Property | Description | Type | Default | | -------- | ----------- | ---- | ------- | | actions | 在评论内容下面呈现的操作项列表 | Array | - | -| author | 要显示为注释作者的元素 | ReactNode | - | -| avatar | 要显示为评论头像的元素 - 通常是antd `Avatar` | ReactNode | - | +| author | 要显示为注释作者的元素 | string\|ReactNode | - | +| avatar | 要显示为评论头像的元素 - 通常是antd `Avatar` 或者src | string\|ReactNode | - | | children | 嵌套注释应作为注释的子项提供 | ReactNode | - | -| content | 评论的主要内容 | ReactNode | - | -| datetime | 展示时间描述 | ReactNode | - | +| content | 评论的主要内容 | string\|ReactNode | - | +| datetime | 展示时间描述 | string\|ReactNode | - |