Skip to content

Commit 8fbdbb1

Browse files
authored
docs(rate): update type definition (#5474)
1 parent 4724c04 commit 8fbdbb1

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

components/rate/index.en-US.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ Rate component.
1414

1515
## API
1616

17-
| Property | Description | type | Default |
18-
| --- | --- | --- | --- |
19-
| allowClear | whether to allow clear when click again | boolean | true |
20-
| allowHalf | whether to allow semi selection | boolean | false |
21-
| autofocus | get focus when component mounted | boolean | false |
22-
| character | custom character of rate | String or slot="character" | `<StarOutlined />` |
23-
| count | star count | number | 5 |
24-
| disabled | read only, unable to interact | boolean | false |
25-
| tooltips | Customize tooltip by each character | string\[] | - |
26-
| value(v-model) | current value | number | - |
17+
| Property | Description | type | Default |
18+
| -------------- | --------------------------------------- | -------------- | ------------------ |
19+
| allowClear | whether to allow clear when click again | boolean | true |
20+
| allowHalf | whether to allow semi selection | boolean | false |
21+
| autofocus | get focus when component mounted | boolean | false |
22+
| character | custom character of rate | string \| slot | `<StarOutlined />` |
23+
| count | star count | number | 5 |
24+
| disabled | read only, unable to interact | boolean | false |
25+
| tooltips | Customize tooltip by each character | string[] | - |
26+
| value(v-model) | current value | number | - |
2727

2828
### events
2929

components/rate/index.zh-CN.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ cover: https://gw.alipayobjects.com/zos/alicdn/R5uiIWmxe/Rate.svg
1515

1616
## API
1717

18-
| 属性 | 说明 | 类型 | 默认值 |
19-
| -------------- | ---------------------- | -------------------------- | ------------------ |
20-
| allowClear | 是否允许再次点击后清除 | boolean | true |
21-
| allowHalf | 是否允许半选 | boolean | false |
22-
| autofocus | 自动获取焦点 | boolean | false |
23-
| character | 自定义字符 | String or slot="character" | `<StarOutlined />` |
24-
| count | star 总数 | number | 5 |
25-
| disabled | 只读,无法进行交互 | boolean | false |
26-
| tooltips | 自定义每项的提示信息 | string\[] | - |
27-
| value(v-model) | 当前数,受控值 | number | - |
18+
| 属性 | 说明 | 类型 | 默认值 |
19+
| -------------- | ---------------------- | -------------- | ------------------ |
20+
| allowClear | 是否允许再次点击后清除 | boolean | true |
21+
| allowHalf | 是否允许半选 | boolean | false |
22+
| autofocus | 自动获取焦点 | boolean | false |
23+
| character | 自定义字符 | string \| slot | `<StarOutlined />` |
24+
| count | star 总数 | number | 5 |
25+
| disabled | 只读,无法进行交互 | boolean | false |
26+
| tooltips | 自定义每项的提示信息 | string[] | - |
27+
| value(v-model) | 当前数,受控值 | number | - |
2828

2929
### 事件
3030

0 commit comments

Comments
 (0)