/** * @file 基于 react-datetime 改造。 */ import React from 'react'; import { ClassValue } from '../../utils/cx'; import moment from 'dayjs'; export declare type PickerOption = string | number | PickerObjectOption; export declare type PickerObjectOption = { value?: string | number; text?: string | number; disabled?: boolean; } & Record; export declare type DateType = 'year' | 'month' | 'date' | 'hour' | 'minute' | 'second'; export interface BoundaryObject { max: number; min: number; } export interface DateBoundary { year: BoundaryObject; month: BoundaryObject; date: BoundaryObject; hour: BoundaryObject; minute: BoundaryObject; second: BoundaryObject; } interface BaseDatePickerProps { className?: ClassValue; value?: any; defaultValue?: any; viewMode?: 'years' | 'months' | 'days' | 'time' | 'quarter'; dateFormat?: boolean | string; inputFormat?: boolean | string; timeFormat?: boolean | string; input?: boolean; locale: string; date?: any; isValidDate?: (currentDate: moment.Dayjs, selected?: moment.Dayjs) => boolean; onViewModeChange?: (type: string) => void; requiredConfirm?: boolean; onClose?: () => void; onChange?: (value: any) => void; isEndDate?: boolean; minDate?: moment.Dayjs; maxDate?: moment.Dayjs; viewDate?: moment.Dayjs; renderMonth?: (props: any, month: number, year: number, date: any) => void; renderDay?: (props: any, currentDate: moment.Dayjs, selectedDate: moment.Dayjs) => JSX.Element; renderQuarter?: (props: any, quartar: number, year?: number, date?: moment.Dayjs) => JSX.Element; schedules?: Array<{ startTime: Date; endTime: Date; content: string | React.ReactElement; color?: string; }>; largeMode?: boolean; onScheduleClick?: (scheduleData: any) => void; hideHeader?: boolean; updateOn?: string; useMobileUI?: boolean; embed?: boolean; closeOnSelect?: boolean; showToolbar?: boolean; open?: boolean; utc?: boolean; displayTimeZone?: string; timeConstraints?: any; translate?: any; } declare const _default: React.ComponentType; export default _default;