UNPKG

@alifd/meet-react

Version:

Fusion Mobile React UI System Component

32 lines (31 loc) 1.41 kB
/// <reference types="react" /> import { LocaleType as SelectDrawerLocaleType, SelectDrawerProps } from '../../select-drawer'; import { TimePickerProps } from '../../time-picker'; import { LocaledComponentProps } from '../../locale'; import { BasicSizeType } from '../../utils/types'; import { LocaleType as DatePickerLocaleType } from '../types'; type NoLocaleSelectDrawer = Omit<Omit<SelectDrawerProps, 'onOk'>, 'locale'>; type RangePickerLocale = DatePickerLocaleType & SelectDrawerLocaleType; export interface RangePickerProps extends NoLocaleSelectDrawer, LocaledComponentProps<RangePickerLocale> { prefix?: string; value?: [Date, Date]; defaultValue?: [Date, Date]; disabledDate?: (value: Date, view: string) => boolean; validRange?: [Date, Date]; format?: string; size?: BasicSizeType; align?: 'left' | 'right'; iconType?: string; placeholder?: string; showTime?: boolean | TimePickerProps; disabled?: boolean; readOnly?: boolean; hasClear?: boolean; onClear?: () => void; onChange?: (value: [Date, Date] | null) => void; onOk?: (value: [Date, Date]) => void; onVisibleChange?: (visible: boolean) => void; onCancel?: (reason?: string) => void; } declare const _default: import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<RangePickerProps>>; export default _default;