Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
kiner-tang committed Nov 25, 2023
1 parent 12f28c3 commit 7608e99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web3/src/connect-button/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions packages/web3/src/connect-button/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7608e99

Please sign in to comment.