docs(rate): update type definition (#5474)
parent
4724c0415e
commit
8fbdbb13a6
|
@ -14,16 +14,16 @@ Rate component.
|
|||
|
||||
## API
|
||||
|
||||
| Property | Description | type | Default |
|
||||
| --- | --- | --- | --- |
|
||||
| allowClear | whether to allow clear when click again | boolean | true |
|
||||
| allowHalf | whether to allow semi selection | boolean | false |
|
||||
| autofocus | get focus when component mounted | boolean | false |
|
||||
| character | custom character of rate | String or slot="character" | `<StarOutlined />` |
|
||||
| count | star count | number | 5 |
|
||||
| disabled | read only, unable to interact | boolean | false |
|
||||
| tooltips | Customize tooltip by each character | string\[] | - |
|
||||
| value(v-model) | current value | number | - |
|
||||
| Property | Description | type | Default |
|
||||
| -------------- | --------------------------------------- | -------------- | ------------------ |
|
||||
| allowClear | whether to allow clear when click again | boolean | true |
|
||||
| allowHalf | whether to allow semi selection | boolean | false |
|
||||
| autofocus | get focus when component mounted | boolean | false |
|
||||
| character | custom character of rate | string \| slot | `<StarOutlined />` |
|
||||
| count | star count | number | 5 |
|
||||
| disabled | read only, unable to interact | boolean | false |
|
||||
| tooltips | Customize tooltip by each character | string[] | - |
|
||||
| value(v-model) | current value | number | - |
|
||||
|
||||
### events
|
||||
|
||||
|
|
|
@ -15,16 +15,16 @@ cover: https://gw.alipayobjects.com/zos/alicdn/R5uiIWmxe/Rate.svg
|
|||
|
||||
## API
|
||||
|
||||
| 属性 | 说明 | 类型 | 默认值 |
|
||||
| -------------- | ---------------------- | -------------------------- | ------------------ |
|
||||
| allowClear | 是否允许再次点击后清除 | boolean | true |
|
||||
| allowHalf | 是否允许半选 | boolean | false |
|
||||
| autofocus | 自动获取焦点 | boolean | false |
|
||||
| character | 自定义字符 | String or slot="character" | `<StarOutlined />` |
|
||||
| count | star 总数 | number | 5 |
|
||||
| disabled | 只读,无法进行交互 | boolean | false |
|
||||
| tooltips | 自定义每项的提示信息 | string\[] | - |
|
||||
| value(v-model) | 当前数,受控值 | number | - |
|
||||
| 属性 | 说明 | 类型 | 默认值 |
|
||||
| -------------- | ---------------------- | -------------- | ------------------ |
|
||||
| allowClear | 是否允许再次点击后清除 | boolean | true |
|
||||
| allowHalf | 是否允许半选 | boolean | false |
|
||||
| autofocus | 自动获取焦点 | boolean | false |
|
||||
| character | 自定义字符 | string \| slot | `<StarOutlined />` |
|
||||
| count | star 总数 | number | 5 |
|
||||
| disabled | 只读,无法进行交互 | boolean | false |
|
||||
| tooltips | 自定义每项的提示信息 | string[] | - |
|
||||
| value(v-model) | 当前数,受控值 | number | - |
|
||||
|
||||
### 事件
|
||||
|
||||
|
|
Loading…
Reference in New Issue