import type { LocaleProps, Schema, ThemeProps } from 'jamis-core'; import type { ShortCuts } from '../../types'; export type DynamicDateRangeString = T extends number ? `${T}${'daysago' | 'dayslater' | 'weeksago' | 'weekslater' | 'monthsago' | 'monthslater' | 'quartersago' | 'quarterslater' | 'yearsago' | 'yearslater'}` : never; export type DateRangeString = 'today' | 'yesterday' | 'tomorrow' | 'prevweek' | 'thisweek' | 'thismonth' | 'prevmonth' | 'prevquarter' | 'thisquarter' | 'thisyear' | 'lastYear' | DynamicDateRangeString; export interface DateRangePickerProps extends ThemeProps, LocaleProps { className?: string; popoverClassName?: string; startPlaceholder?: string; endPlaceholder?: string; theme?: any; format: string; utc?: boolean; inputFormat?: string; ranges?: DateRangeString[] | Array | string; clearable?: boolean; minDate?: moment.Moment; maxDate?: moment.Moment; minDuration?: moment.Duration; maxDuration?: moment.Duration; joinValues: boolean; delimiter: string; value?: any; onChange: (value: any) => void; data?: any; disabled?: boolean; closeOnSelect?: boolean; overlayPlacement: string; timeFormat?: string; resetValue?: any; popOverContainer?: any; dateFormat?: string; embed?: boolean; viewMode?: 'days' | 'months' | 'years' | 'time' | 'quarters'; borderMode?: 'full' | 'half' | 'none'; useMobileUI?: boolean; onFocus?: Function; onBlur?: Function; type?: string; onRef?: any; label?: string | false | Schema; /** 是否开启游标动画 */ animation?: boolean; }