Browse Source

docs(rate): update type definition (#5474)

pull/5477/head
bqy_fe 3 years ago committed by GitHub
parent
commit
8fbdbb13a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      components/rate/index.en-US.md
  2. 20
      components/rate/index.zh-CN.md

20
components/rate/index.en-US.md

@ -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

20
components/rate/index.zh-CN.md

@ -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…
Cancel
Save