UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

18 lines (17 loc) 868 B
import { FC, ReactNode } from 'react'; import type { PickerProps } from '../picker'; import { NativeProps } from '../../utils/native-props'; import type { Precision, DatePickerFilter } from './date-picker-utils'; export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'closeOnMaskClick' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation' | 'style'> & { value?: Date | null; defaultValue?: Date | null; onSelect?: (value: Date) => void; onConfirm?: (value: Date) => void; min?: Date; max?: Date; precision?: Precision; children?: (value: Date | null) => ReactNode; renderLabel?: (type: Precision, data: number) => ReactNode; filter?: DatePickerFilter; } & NativeProps; export declare const DatePicker: FC<DatePickerProps>;