feat: support changeOnBlur (#45395)

This commit is contained in:
二货爱吃白萝卜 2023-10-18 13:50:46 +08:00 committed by GitHub
parent 3ab42ad0db
commit 2e8e67fcea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,7 @@ Common props ref[Common props](/docs/react/common-props)
| addonBefore | The label text displayed before (on the left side of) the input field | ReactNode | - | |
| autoFocus | If get focus when component mounted | boolean | false | - |
| bordered | Whether has border style | boolean | true | 4.12.0 |
| changeOnBlur | Trigger `onChange` when blur. e.g. reset value in range by blur | boolean | true | 5.11.0 |
| controls | Whether to show `+-` controls, or set custom arrows icon | boolean \| { upIcon?: React.ReactNode; downIcon?: React.ReactNode; } | - | 4.19.0 |
| decimalSeparator | Decimal separator | string | - | - |
| defaultValue | The initial value | number | - | - |

View File

@ -43,6 +43,7 @@ demo:
| addonBefore | 带标签的 input设置前置标签 | ReactNode | - | 4.17.0 |
| autoFocus | 自动获取焦点 | boolean | false | - |
| bordered | 是否有边框 | boolean | true | 4.12.0 |
| changeOnBlur | 是否在失去焦点时,触发 `onChange` 事件(例如值超出范围时,重新限制回范围并触发事件) | boolean | true | 5.11.0 |
| controls | 是否显示增减按钮,也可设置自定义箭头图标 | boolean \| { upIcon?: React.ReactNode; downIcon?: React.ReactNode; } | - | 4.19.0 |
| decimalSeparator | 小数点 | string | - | - |
| defaultValue | 初始值 | number | - | - |

View File

@ -133,7 +133,7 @@
"rc-field-form": "~1.40.0",
"rc-image": "~7.3.1",
"rc-input": "~1.3.5",
"rc-input-number": "~8.3.0",
"rc-input-number": "~8.4.0",
"rc-mentions": "~2.9.1",
"rc-menu": "~9.12.2",
"rc-motion": "^2.9.0",