jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
26 lines (25 loc) • 892 B
TypeScript
import type { CalendarPartBaseProps, CalendarViewMode, TimeConstraints } from './Calendar.types';
export interface CalendarMobileProps extends Omit<CalendarPartBaseProps, 'onChange'> {
dateFormat?: string;
timeFormat?: string;
defaultDate?: moment.Moment;
embed?: boolean;
endDate?: moment.Moment;
footerExtra?: JSX.Element | null;
isDatePicker?: boolean;
maxDate?: moment.Moment;
maxDuration?: moment.Duration;
minDate?: moment.Moment;
minDuration?: moment.Duration;
showViewMode?: 'years' | 'months';
startDate?: moment.Moment;
viewMode?: CalendarViewMode;
timeConstraints?: TimeConstraints;
schemaType?: string;
onChange?: (data: {
startDate?: moment.Moment;
endDate?: moment.Moment;
}, callback?: () => void) => void;
close?: () => void;
confirm?: (startDate?: any, endTime?: any) => void;
}