@alifd/meet-react
Version:
Fusion Mobile React UI System Component
36 lines (35 loc) • 998 B
TypeScript
import { AvailableDate } from '../utils/date';
import { BaseComponentAttributes, BasicSizeType } from '../utils/types';
export type DateRange = [Date, Date];
export interface LocaleType {
year?: string;
month?: string;
day?: string;
prev?: string;
next?: string;
foldUp?: string;
selectStartTime?: string;
selectEndTime?: string;
}
export interface BasicDatePickerProps {
value?: AvailableDate;
defaultValue?: AvailableDate;
disabledDate?: (value: Date) => boolean;
validRange?: DateRange;
format?: string;
size?: BasicSizeType;
align?: 'left' | 'right';
iconType?: string;
placeholder?: string;
disabled?: boolean;
readOnly?: boolean;
onChange?: (value: Date) => void;
onOk?: (value: Date) => void;
onVisibleChange?: (visible: boolean) => void;
}
export interface DateIndicatorProps extends BaseComponentAttributes {
values: string[];
format?: string;
separator?: string;
highlight: number;
}