UNPKG

@alifd/meet-react

Version:

Fusion Mobile React UI System Component

31 lines (30 loc) 934 B
import { LocaledComponentProps } from '../locale'; import { AvailableDate } from '../utils/date'; import { BaseComponentAttributes } from '../utils/types'; export interface LocaleType { year?: string; month?: string; day?: string; hour?: string; minute?: string; second?: string; am?: string; pm?: string; } export interface EmbedPickerProps extends BaseComponentAttributes, LocaledComponentProps<LocaleType> { value?: AvailableDate; defaultValue?: AvailableDate; hourStep?: number; minuteStep?: number; secondStep?: number; format?: string; locale?: LocaleType; validRange?: [Date, Date]; hasClear?: boolean; disabledHours?: (index: number) => boolean; disabledMinutes?: (index: number) => boolean; disabledSeconds?: (index: number) => boolean; onClear?: () => void; onChange?: (value?: Date) => void; onCancel?: (reason: string) => void; }