From 8cf6be11f7fa6ac32be6f1a3ebf58324be220a1e Mon Sep 17 00:00:00 2001 From: w-z-y <54393224+w-z-y@users.noreply.github.com> Date: Sat, 11 Nov 2023 10:00:48 +0800 Subject: [PATCH] fix: DatePicker panelChange(#7059) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit onPanelChange事件缺少 --- components/vc-picker/Picker.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/vc-picker/Picker.tsx b/components/vc-picker/Picker.tsx index 1607528d2..c7ae24110 100644 --- a/components/vc-picker/Picker.tsx +++ b/components/vc-picker/Picker.tsx @@ -81,6 +81,7 @@ export type PickerSharedProps = { // Events onChange?: (value: DateType | null, dateString: string) => void; onOpenChange?: (open: boolean) => void; + onPanelChange?: (values: RangeValue, modes: [PanelMode, PanelMode]) => void; onFocus?: FocusEventHandler; onBlur?: FocusEventHandler; onMousedown?: MouseEventHandler; @@ -176,6 +177,7 @@ function Picker() { 'inputRender', 'onChange', 'onOpenChange', + 'onPanelChange', 'onFocus', 'onBlur', 'onMousedown',