mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 06:58:33 +08:00
84ee56f708
* docs: add needConfirm option on time-picker docs * docs: add onchange event to catch time changed * docs: change file name to kebab case * test: add test snapshot * docs: delete needConfirm true demo in datePicker * docs: add needConfirm true in demo * test: delete old need confirm snapshot * docs: update need-confirm snapshot * test: update test snapshot
8 lines
716 B
Markdown
8 lines
716 B
Markdown
## zh-CN
|
|
|
|
TimePicker 默认会根据 `picker` 的交互行为,自动选择是否需要确认按钮。你也可以通过 `needConfirm` 属性来手动设置是否需要确认按钮。当有 `needConfirm` 时,用户始终需要点击确认按钮才能完成选择。反之,则会在选择或者失去焦点时提交。
|
|
|
|
## en-US
|
|
|
|
TimePicker will automatically determine whether to show a confirm button according to the `picker` property. You can also set the `needConfirm` property to determine whether to show a confirm button. When `needConfirm` is set, the user must click the confirm button to complete the selection. Otherwise, the selection will be submitted when the picker loses focus or select a time.
|