Skip to content

Commit 65e65df

Browse files
committed
fix: presets和maxDate的对比
1 parent 14591ab commit 65e65df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PickerInput/Popup/PresetPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import * as React from 'react';
22
import type { ValueDate } from '../../interface';
3+
import type { MomentInput } from 'moment';
34
import moment from 'moment';
45

5-
export interface PresetPanelProps<ValueType = any, DateType extends object = any> {
6+
export interface PresetPanelProps<ValueType = any, DateType extends MomentInput = MomentInput> {
67
prefixCls: string;
78
presets: ValueDate<ValueType>[];
89
onClick: (value: ValueType) => void;

0 commit comments

Comments
 (0)