fix: DatePicker panelChange(#7059)

onPanelChange事件缺少
This commit is contained in:
w-z-y 2023-11-11 10:00:48 +08:00 committed by GitHub
parent 2510608665
commit 8cf6be11f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,7 @@ export type PickerSharedProps<DateType> = {
// Events
onChange?: (value: DateType | null, dateString: string) => void;
onOpenChange?: (open: boolean) => void;
onPanelChange?: (values: RangeValue<DateType>, modes: [PanelMode, PanelMode]) => void;
onFocus?: FocusEventHandler;
onBlur?: FocusEventHandler;
onMousedown?: MouseEventHandler;
@ -176,6 +177,7 @@ function Picker<DateType>() {
'inputRender',
'onChange',
'onOpenChange',
'onPanelChange',
'onFocus',
'onBlur',
'onMousedown',