/** * @file DatePicker * @description 时间选择器组件 */ import { CSSProperties } from 'react'; import moment from 'dayjs'; import 'dayjs/locale/en'; import 'dayjs/locale/zh-cn'; import { type ClassValue, SizeType } from '../../utils/cx'; export interface PlainObject { [propsName: string]: any; } export declare type ShortCutDate = { label: string; date: moment.Dayjs; }; export declare type ShortCutDateRange = { label: string; startDate?: moment.Dayjs; endDate?: moment.Dayjs; }; export declare type ShortCuts = { label: string; value: string; } | ShortCutDate | ShortCutDateRange; export interface DatePickerProps { size?: SizeType; style?: CSSProperties; className?: ClassValue; popoverClassName?: string; quickEdit?: boolean; quickStatic?: boolean; quickStaticStr?: boolean; staticPlaceholder?: string; viewMode: 'years' | 'months' | 'days' | 'time' | 'quarters'; placeholder?: string; inputFormat?: string; timeFormat?: string; format?: string; closeOnSelect?: boolean; disabled?: boolean; minDate?: moment.Dayjs; maxDate?: moment.Dayjs; clearable?: boolean; defaultValue?: any; utc?: boolean; onChange: (value: any) => void; value?: any; shortcuts: string | Array; overlayPlacement: string; dateFormat?: string; timeConstraints?: { hours?: { min: number; max: number; step: number; }; minutes?: { min: number; max: number; step: number; }; seconds: { min: number; max: number; step: number; }; }; container?: any; borderMode?: 'full' | 'half' | 'none'; embed?: boolean; schedules?: Array<{ startTime: Date; endTime: Date; content: any; className?: ClassValue; }>; scheduleClassNames?: Array; largeMode?: boolean; onScheduleClick?: (scheduleData: any) => void; useMobileUI?: boolean; mobileCalendarMode?: 'picker' | 'calendar'; onFocus?: Function; onBlur?: Function; } export interface DatePickerState { isOpened: boolean; isFocused: boolean; value: moment.Dayjs | undefined; inputValue: string | undefined; } declare const _default: any; export default _default;