docs: close Event description Modified and improved

pull/8016/head
黄明富 2025-01-13 20:10:46 +08:00
parent 45c7109212
commit dd5cb9400e
3 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ title:
## zh-CN
基本标签的用法可以通过添加 `closable` 变为可关闭标签可关闭标签具有 `close` 两个事件
基本标签的用法可以通过添加 `closable` 变为可关闭标签可关闭标签具有 `close` 事件
## en-US
Usage of basic Tag, and it could be closable by set `closable` property. Closable Tag supports `close` events.

View File

@ -27,9 +27,9 @@ Tag for categorizing or markup.
### Tag Events
| Events Name | Description | Arguments |
| ----------- | ------------------------------------ | ----------- |
| close | Callback executed when tag is closed | (e) => void |
| Events Name | Description | Arguments |
| --- | --- | --- |
| close | Callback executed when tag is closedDefault behavior can be blocked by `e.preventDefault()` | (e) => void |
### Tag.CheckableTag

View File

@ -28,9 +28,9 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*JPNAQYrVkYkAAA
### 事件
| 事件名称 | 说明 | 回调参数 |
| -------- | ------------ | ----------- |
| close | 关闭时的回调 | (e) => void |
| 事件名称 | 说明 | 回调参数 |
| -------- | ---------------------------------------------------------- | ----------- |
| close | 关闭时的回调(可通过 `e.preventDefault()` 来阻止默认行为) | (e) => void |
### Tag.CheckableTag