jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/es/DatePicker/props.d.ts

125 lines
3.1 KiB
TypeScript
Raw Normal View History

2024-11-15 03:51:28 +00:00
import { IBaseProps } from '../_util/base';
export type PickerValue = Date | string | number;
/**
* @description
*/
export interface IDatePickerProps extends IBaseProps {
visible?: boolean;
defaultVisible?: boolean;
/**
* @desciption
* @default "transform"
*/
animationType?: 'transform' | 'position';
/**
* @description YYYY-MM-DD
*/
format?: string;
/**
* @description
* @default
*/
min?: PickerValue;
/**
* @description
* @default
*/
max?: PickerValue;
/**
* @description
*/
value?: PickerValue;
/**
* @description
*/
defaultValue?: PickerValue;
/**
* @description
*/
title?: string;
/**
* @description
* @default "确定"
*/
okText?: string;
/**
* @description
* @default "取消"
*/
cancelText?: string;
/**
* @description
* @default '请选择'
*/
placeholder?: string;
/**
* @description
* @default 'day'
*/
precision: 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second';
/**
* @description
* @default false
*/
maskClosable?: boolean;
/**
* @description
*/
popClassName?: string;
/**
* @description
*/
popStyle?: string;
/**
* @description
*/
disabled?: boolean;
/**
*@description
* 1.10.0
*/
indicatorStyle?: string;
/**
*@description
* 1.10.0
*/
indicatorClassName?: string;
/**
* @description
* 1.10.0
*/
maskStyle?: string;
/**
* @description
* 1.10.0
*/
maskClassName?: string;
/**
* @description
*/
onOk?: (date: PickerValue, dateStr: string, e: Record<string, any>) => void;
/**
* @description
*/
onCancel?: (e: Record<string, any>) => void;
/**
* @description onChange ok
*/
onPickerChange?: (date: PickerValue, dateStr: string, e: Record<string, any>) => void;
/**
* @description
*/
onFormat?: (date: PickerValue, dateStr: string) => string;
/**
* @description
*/
onVisibleChange?: (visible: any, e: Record<string, any>) => void;
/**
*
* @param type
* @param value
*/
onFormatLabel?(type: 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second', value: number): string;
}
export declare const DatePickerDefaultProps: IDatePickerProps;