jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/less/Calendar/props.d.ts

92 lines
1.6 KiB
TypeScript
Raw Normal View History

2024-11-10 07:01:22 +00:00
import { IBaseProps } from '../_base';
interface ICustomDateTextResp {
color: string;
text: string;
date: Date;
}
interface IHolidayItem {
name: string;
range: [Date, Date];
day: Date;
}
export interface ICalendarProps extends IBaseProps {
/**
* @description
* @default null
*/
min?: Date;
/**
* @description
* @default null
*/
max?: Date;
/**
* @description
* @default null
*/
defaultValue?: Date;
/**
* @description
* @default null
*/
defaultRange?: [Date, Date];
/**
* @description
* @default true
*/
selectionMode?: 'single' | 'range';
/**
* @description
* @default true
*/
disableDates?: Date[];
/**
* @description
*/
customDateList: ICustomDateTextResp[];
/**
* @description
*/
holidayList: IHolidayItem[];
/**
* @description
*/
showConfirmButton: boolean;
/**
* @description
*/
showResetButton: boolean;
/**
* @description
*/
showlunar: boolean;
/**
* @description
*/
showTitle: boolean
/**
* @description
*/
showMask: boolean
/**
* @description
*/
onClose: () => void
/**
* @description
*/
onChange: (v: any) => void
}
export declare const CalendarDefaultProps: Partial<ICalendarProps>;