docs(tag): update type definition (#5476)

pull/5477/head
bqy_fe 3 years ago committed by GitHub
parent eb29738cd8
commit bb1ae396e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,13 +16,13 @@ Tag for categorizing or markup.
### Tag
| Property | Description | Type | Default | Version |
| ---------------- | -------------------------------- | ------------------- | ------- | ------- |
| closable | Whether the Tag can be closed | boolean | `false` | |
| closeIcon | Custom close icon | VNode \| #closeIcon | - | 2.0.0 |
| color | Color of the Tag | string | - | |
| icon | Set the icon of tag | VNode \| #icon | - | 2.0.0 |
| visible(v-model) | Whether the Tag is closed or not | boolean | `true` | |
| Property | Description | Type | Default | Version |
| ---------------- | -------------------------------- | ------------- | ------- | ------- |
| closable | Whether the Tag can be closed | boolean | `false` | |
| closeIcon | Custom close icon | VNode \| slot | - | 2.0.0 |
| color | Color of the Tag | string | - | |
| icon | Set the icon of tag | VNode \| slot | - | 2.0.0 |
| visible(v-model) | Whether the Tag is closed or not | boolean | `true` | |
### Tag Events

@ -17,13 +17,13 @@ cover: https://gw.alipayobjects.com/zos/alicdn/cH1BOLfxC/Tag.svg
### Tag
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| ---------------- | ---------------- | ------------------- | ------ | ----- |
| closable | 标签是否可以关闭 | boolean | false | |
| closeIcon | 自定义关闭按钮 | VNode \| #closeIcon | - | 2.0.0 |
| color | 标签色 | string | - | |
| icon | 设置图标 | VNode \| #icon | - | 2.0.0 |
| visible(v-model) | 是否显示标签 | boolean | `true` | |
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| ---------------- | ---------------- | ------------- | ------ | ----- |
| closable | 标签是否可以关闭 | boolean | false | |
| closeIcon | 自定义关闭按钮 | VNode \| slot | - | 2.0.0 |
| color | 标签色 | string | - | |
| icon | 设置图标 | VNode \| slot | - | 2.0.0 |
| visible(v-model) | 是否显示标签 | boolean | `true` | |
### 事件

Loading…
Cancel
Save