mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
docs: Refine documentation on onClose event object types (#48279)
This commit is contained in:
parent
f427c87587
commit
acfeb94f50
@ -44,7 +44,7 @@ Common props ref:[Common props](/docs/react/common-props)
|
||||
| color | Color of the Tag | string | - | |
|
||||
| icon | Set the icon of tag | ReactNode | - | |
|
||||
| bordered | Whether has border style | boolean | true | 5.4.0 |
|
||||
| onClose | Callback executed when tag is closed | (e) => void | - | |
|
||||
| onClose | Callback executed when tag is closed | (e: React.MouseEvent<HTMLElement, MouseEvent>) => void | - | |
|
||||
|
||||
### Tag.CheckableTag
|
||||
|
||||
|
@ -44,7 +44,7 @@ demo:
|
||||
| color | 标签色 | string | - | |
|
||||
| icon | 设置图标 | ReactNode | - | |
|
||||
| bordered | 是否有边框 | boolean | true | 5.4.0 |
|
||||
| onClose | 关闭时的回调(可通过 `e.preventDefault()` 来阻止默认行为) | (e) => void | - | |
|
||||
| onClose | 关闭时的回调(可通过 `e.preventDefault()` 来阻止默认行为) | (e: React.MouseEvent<HTMLElement, MouseEvent>) => void | - | |
|
||||
|
||||
### Tag.CheckableTag
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user