diff --git a/packages/date-picker/src/panels/month/index.tsx b/packages/date-picker/src/panels/month/index.tsx index 32ad20ce2..3683be5cc 100644 --- a/packages/date-picker/src/panels/month/index.tsx +++ b/packages/date-picker/src/panels/month/index.tsx @@ -33,8 +33,6 @@ const MONTHS = [ export const MonthPickerPanel: FC = (props) => { const { pageShowDate, - onMouseEnterCell, - onMouseLeaveCell, dateRender, disabledDate, value, @@ -122,8 +120,6 @@ export const MonthPickerPanel: FC = (props) => { isSameTime={(current: Dayjs, target: Dayjs) => current.isSame(target, "month") } - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} dateRender={dateRender} disabledDate={disabledDate} mode="month" diff --git a/packages/date-picker/src/panels/month/interface.ts b/packages/date-picker/src/panels/month/interface.ts index 44cda9488..04da12040 100644 --- a/packages/date-picker/src/panels/month/interface.ts +++ b/packages/date-picker/src/panels/month/interface.ts @@ -10,8 +10,6 @@ export interface MonthPickerPanelProps extends SingleMonthPickerProps, PrivateCType { rangeValues?: Dayjs[] - onMouseEnterCell?: (time: Dayjs, disabled: boolean) => void - onMouseLeaveCell?: (time: Dayjs, disabled: boolean) => void dateRender?: (currentDate: Dayjs) => ReactNode pageShowDate?: Dayjs isRangePicker?: boolean diff --git a/packages/date-picker/src/panels/quarter/index.tsx b/packages/date-picker/src/panels/quarter/index.tsx index c294541a9..7fb1961b3 100644 --- a/packages/date-picker/src/panels/quarter/index.tsx +++ b/packages/date-picker/src/panels/quarter/index.tsx @@ -27,8 +27,6 @@ const generateRows = (showYear: number) => { export const QuarterPickerPanel: FC = (props) => { const { pageShowDate, - onMouseEnterCell, - onMouseLeaveCell, dateRender, disabledDate, value, @@ -97,8 +95,6 @@ export const QuarterPickerPanel: FC = (props) => { rows={rows} onSelectDate={onSelect} isSameTime={isSameTime} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} dateRender={dateRender} disabledDate={disabledDate} mode="quarter" diff --git a/packages/date-picker/src/panels/quarter/interface.ts b/packages/date-picker/src/panels/quarter/interface.ts index 577cfa671..50bb4b058 100644 --- a/packages/date-picker/src/panels/quarter/interface.ts +++ b/packages/date-picker/src/panels/quarter/interface.ts @@ -10,8 +10,6 @@ export interface QuarterPickerPanelProps extends SingleQuarterPickerProps, PrivateCType { rangeValues?: Dayjs[] - onMouseEnterCell?: (time: Dayjs, disabled: boolean) => void - onMouseLeaveCell?: (time: Dayjs, disabled: boolean) => void dateRender?: (currentDate: Dayjs) => ReactNode pageShowDate?: Dayjs isRangePicker?: boolean diff --git a/packages/date-picker/src/panels/range/index.tsx b/packages/date-picker/src/panels/range/index.tsx index 037c78a13..b2787b81f 100644 --- a/packages/date-picker/src/panels/range/index.tsx +++ b/packages/date-picker/src/panels/range/index.tsx @@ -32,8 +32,6 @@ export const RangePickerPanel: FC = (props) => { timeValues, locale, pageShowDates, - onMouseEnterCell, - onMouseLeaveCell, onTimePickerSelect: onSelectTime, onSelectPanel, onPrev, @@ -140,8 +138,6 @@ export const RangePickerPanel: FC = (props) => { onSuperPrev={onSuperPrev} isRangePicker rangeValues={value} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} format={format} disabledDate={disabledDate} onSelect={onSelectPanel} @@ -172,8 +168,6 @@ export const RangePickerPanel: FC = (props) => { onSuperNext={onSuperNext} isRangePicker rangeValues={value} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} format={format} disabledDate={disabledDate} onSelect={onSelectPanel} @@ -210,8 +204,6 @@ export const RangePickerPanel: FC = (props) => { onSuperPrev={onSuperPrev} isRangePicker rangeValues={value} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} format={format} disabledDate={disabledDate} onSelect={onSelectPanel} @@ -229,8 +221,6 @@ export const RangePickerPanel: FC = (props) => { onSuperPrev={onSuperPrev} isRangePicker rangeValues={value} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} format={format} disabledDate={disabledDate} onSelect={onSelectPanel} @@ -255,8 +245,6 @@ export const RangePickerPanel: FC = (props) => { onSuperPrev={onSuperPrev} isRangePicker rangeValues={value} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} format={format} disabledDate={disabledDate} onSelect={onSelectPanel} @@ -268,8 +256,6 @@ export const RangePickerPanel: FC = (props) => { onSuperNext={onSuperNext} isRangePicker rangeValues={value} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} format={format} disabledDate={disabledDate} onSelect={onSelectPanel} @@ -288,8 +274,6 @@ export const RangePickerPanel: FC = (props) => { onSuperPrev={onSuperPrev} isRangePicker rangeValues={value} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} format={format} disabledDate={disabledDate} onSelect={onSelectPanel} @@ -307,8 +291,6 @@ export const RangePickerPanel: FC = (props) => { onSuperNext={onSuperNext} isRangePicker rangeValues={value} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} format={format} disabledDate={disabledDate} onSelect={onSelectPanel} diff --git a/packages/date-picker/src/panels/range/interface.ts b/packages/date-picker/src/panels/range/interface.ts index c8a8c9f56..5bd66d967 100644 --- a/packages/date-picker/src/panels/range/interface.ts +++ b/packages/date-picker/src/panels/range/interface.ts @@ -16,8 +16,6 @@ export interface RangePickerPanelProps dateString: string | undefined, date: Dayjs | undefined, ) => void - onMouseEnterCell?: (time: Dayjs, disabled: boolean) => void - onMouseLeaveCell?: (time: Dayjs, disabled: boolean) => void onPrev?: () => void onSuperPrev?: () => void onNext?: () => void diff --git a/packages/date-picker/src/panels/year/index.tsx b/packages/date-picker/src/panels/year/index.tsx index ec58b2b77..c8a4b2d3c 100644 --- a/packages/date-picker/src/panels/year/index.tsx +++ b/packages/date-picker/src/panels/year/index.tsx @@ -14,8 +14,6 @@ const isSameYear = (current: Dayjs, target: Dayjs) => export const YearPickerPanel: FC = (props) => { const { pageShowDate, - onMouseEnterCell, - onMouseLeaveCell, dateRender, disabledDate, value, @@ -59,8 +57,6 @@ export const YearPickerPanel: FC = (props) => { rows={rows} onSelectDate={onSelect} isSameTime={isSameYear} - onMouseEnterCell={onMouseEnterCell} - onMouseLeaveCell={onMouseLeaveCell} dateRender={dateRender} disabledDate={disabledDate} mode="year" diff --git a/packages/date-picker/src/panels/year/interface.ts b/packages/date-picker/src/panels/year/interface.ts index 3063d480a..3620ebd6c 100644 --- a/packages/date-picker/src/panels/year/interface.ts +++ b/packages/date-picker/src/panels/year/interface.ts @@ -9,8 +9,6 @@ export interface YearPickerPanelProps > { dateRender?: (currentDate: Dayjs) => ReactNode disabledDate?: (current: Dayjs) => boolean - onMouseEnterCell?: (time: Dayjs, disabled: boolean) => void - onMouseLeaveCell?: (time: Dayjs, disabled: boolean) => void pageShowDate?: Dayjs isRangePicker?: boolean rangeValues?: Dayjs[]