Browse Source

docs: Update Tag index.zh-CN.md (#29982)

* Update index.zh-CN.md

增加文档api可读性,避免因tag closable的默认行为给用户造成预期之外的错误

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>
pull/29983/merge
lijianqiang0502 4 years ago
committed by GitHub
parent
commit
d05ff8e777
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/tag/index.zh-CN.md

4
components/tag/index.zh-CN.md

@ -19,12 +19,12 @@ cover: https://gw.alipayobjects.com/zos/alicdn/cH1BOLfxC/Tag.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| closable | 标签是否可以关闭 | boolean | false | |
| closable | 标签是否可以关闭(点击默认关闭) | boolean | false | |
| closeIcon | 自定义关闭按钮 | ReactNode | - | 4.4.0 |
| color | 标签色 | string | - | |
| icon | 设置图标 | ReactNode | - | |
| visible | 是否显示标签 | boolean | true | |
| onClose | 关闭时的回调 | (e) => void | - | |
| onClose | 关闭时的回调(可通过 `e.preventdefault()` 来阻止默认行为) | (e) => void | - | |
### Tag.CheckableTag

Loading…
Cancel
Save