@alifd/meet-react
Version:
Fusion Mobile React UI System Component
29 lines (28 loc) • 1.19 kB
TypeScript
import { FunctionComponent, ReactNode } from 'react';
import { LocaledComponentProps } from '../locale';
import { BaseComponentAttributes } from '../utils/types';
import { ContentType, DateCellClassType, DateCellContext, LocaleType, ModeType } from './types';
export interface CalendarContentProps extends BaseComponentAttributes, LocaledComponentProps<LocaleType> {
selectedDate: Date | Date[];
visibleDate: Date;
maxDate?: Date;
minDate?: Date;
type?: ContentType;
mode?: ModeType;
locale?: LocaleType;
firstDay?: number;
enableTimePicker?: boolean;
onDateChange: (value: Date | Date[], clickedItem: Date) => void;
disabledDate?: (date: Date, view: string) => boolean;
renderCellBottom?: (value: object) => ReactNode;
renderCellRight?: (value: object) => ReactNode;
dateCellRender?: (value: Date, props: {
dateCellClassName: DateCellClassType;
onClick: () => void;
defaultDateCell: ReactNode;
context: DateCellContext;
}) => ReactNode;
monthCellRender?: (value: object) => ReactNode;
}
declare const CalendarContent: FunctionComponent<CalendarContentProps>;
export default CalendarContent;