From e16446da7f88eb1e1662c83c56c22064bb85f0d6 Mon Sep 17 00:00:00 2001 From: HQ-Lin Date: Mon, 18 Jul 2022 11:58:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20button=20=E6=94=AF=E6=8C=81=20suffix?= =?UTF-8?q?=E3=80=81tag=E3=80=81href=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/button/button.md | 4 ++-- src/button/type.ts | 3 +-- src/popconfirm/type.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/button/button.md b/src/button/button.md index 18fe5ef421..57aa2d0cdf 100644 --- a/src/button/button.md +++ b/src/button/button.md @@ -10,7 +10,7 @@ style | Object | - | 样式,TS 类型:`React.CSSProperties` | N block | Boolean | false | 是否为块级元素 | N children | TNode | - | 按钮内容,同 content。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N content | TNode | - | 按钮内容。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N -disabled | Boolean | false | 禁用状态 | N +disabled | Boolean | - | 禁用状态 | N ghost | Boolean | false | 是否为幽灵按钮(镂空按钮) | N href | String | - | 跳转地址。href 存在时,按钮标签默认使用 `` 渲染;如果指定了 `tag` 则使用指定的标签渲染 | N icon | TElement | - | 按钮内部图标,可完全自定义。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N @@ -18,7 +18,7 @@ loading | Boolean | false | 是否显示为加载状态 | N shape | String | rectangle | 按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形。可选项:rectangle/square/round/circle | N size | String | medium | 组件尺寸。可选项:small/medium/large。TS 类型:`SizeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N suffix | TElement | - | 右侧内容,可用于定义右侧图标。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N -tag | String | - | 渲染按钮的 HTML 标签,默认使用标签 `