diff --git a/packages/web3/src/connect-button/index.md b/packages/web3/src/connect-button/index.md index a036814b9..2ad83d9f7 100644 --- a/packages/web3/src/connect-button/index.md +++ b/packages/web3/src/connect-button/index.md @@ -33,10 +33,12 @@ A Button for connect chain quickly. | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | +| connected | Whether connected | `boolean` | - | - | | address | Address | `string` | - | - | | name | Name, like ENS | `string` | - | - | | tooltip | Show tooltip when mouse enter address | `boolean \|` [ConnectButtonTooltipProps](#connectbuttontooltipprops) | `true`, will display address by default | - | | menuItems | Show menu | [ItemType](https://ant-design.antgroup.com/components/menu-cn#itemtype) | - | - | +| clickActionType | Action when click button, related to `connected` when set to `showProfileModal` | `showProfileModal \| showMenu` | `showProfileModal` | - | ### ConnectButtonTooltipProps diff --git a/packages/web3/src/connect-button/index.zh-CN.md b/packages/web3/src/connect-button/index.zh-CN.md index 283c52ca0..c6d6bdfdf 100644 --- a/packages/web3/src/connect-button/index.zh-CN.md +++ b/packages/web3/src/connect-button/index.zh-CN.md @@ -31,10 +31,12 @@ group: 组件 | 属性 | 描述 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | +| connected | 是否已连接 | `boolean` | - | - | | address | 地址 | `string` | - | - | | name | 名称,比如以太坊的 ENS | `string` | - | - | | tooltip | 鼠标移入地址时展示提示 | `boolean \|` [ConnectButtonTooltipProps](#connectbuttontooltipprops) | `true`,默认显示 address 信息 | - | | menuItems | 展示菜单 | [ItemType](https://ant-design.antgroup.com/components/menu-cn#itemtype) | - | - | +| clickActionType | 点击按钮时的行为,当设置为 `showProfileModal` 时还与 `connected` 属性相关 | `showProfileModal \| showMenu` | `showProfileModal` | - | ### ConnectButtonTooltipProps