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

108 lines
2.7 KiB
TypeScript
Raw Normal View History

2024-11-15 03:51:28 +00:00
import { IBaseProps } from '../../_util/base';
export interface ICascaderOption {
label: string;
value: any;
children?: ICascaderOption[];
}
/**
* @description Picker封装
*/
export interface ICascaderProps extends IBaseProps {
visible?: boolean;
defaultVisible?: boolean;
/**
* @desciption
* @default "transform"
*/
animationType: 'transform' | 'position';
/**
* @description
*/
value: any[];
/**
* @description
*/
defaultValue: any[];
/**
* @description
*/
options: ICascaderOption[];
/**
* @description
* @default '请选择'
*/
placeholder: string;
/**
* @description
* @default "取消"
*/
cancelText: string;
/**
* @description
*/
disabled?: boolean;
/**
* @description
*/
title: string;
/**
* @description
* @default "确定"
*/
okText: string;
/**
*@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?: (value: any[], selectedOptions: ICascaderOption[], e: Record<string, any>) => void;
/**
* @description
*/
onCancel?: (e: Record<string, any>) => void;
/**
* @description
*/
onFormat?: (value: any[], selectedOptions: ICascaderOption[]) => string;
/**
* @description
*/
onVisibleChange?: (visible: boolean, e: Record<string, any>) => void;
/**
* @description onChange ok
*/
onChange?: (value: any[], selectedOptions: ICascaderOption[], e: Record<string, any>) => void;
/**
* @description
* @default false
*/
maskClosable: boolean;
/**
* @description
*/
popClassName: string;
/**
* @description
*/
popStyle: string;
}
export declare const CascaderDefaultProps: Partial<ICascaderProps>;