feat: Rate support keyboard prop (#49132)

* feat: rate add support for disable keyboard events

* chore: bump rc-rate@2.13.0

* chore: update
This commit is contained in:
2024-05-31 10:10:48 +08:00 committed by GitHub
parent a6bfb84993
commit e244a0b816
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ Common props ref[Common props](/docs/react/common-props)
| count | Star count | number | 5 | |
| defaultValue | The default value | number | 0 | |
| disabled | If read only, unable to interact | boolean | false | |
| keyboard | Support keyboard operation | boolean | true | 5.18.0 |
| style | The custom style object of rate | CSSProperties | - | |
| tooltips | Customize tooltip by each character | string\[] | - | |
| value | The current value | number | - | |

View File

@ -41,6 +41,7 @@ demo:
| count | star 总数 | number | 5 | |
| defaultValue | 默认值 | number | 0 | |
| disabled | 只读,无法进行交互 | boolean | false | |
| keyboard | 支持使用键盘操作 | boolean | true | 5.18.0 |
| style | 自定义样式对象 | CSSProperties | - | |
| tooltips | 自定义每项的提示信息 | string\[] | - | |
| value | 当前数,受控值 | number | - | |

View File

@ -147,7 +147,7 @@
"rc-pagination": "~4.0.4",
"rc-picker": "~4.5.0",
"rc-progress": "~4.0.0",
"rc-rate": "~2.12.0",
"rc-rate": "~2.13.0",
"rc-resize-observer": "^1.4.0",
"rc-segmented": "~2.3.0",
"rc-select": "~14.14.0",