123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- import { IBaseProps } from '../../_util/base';
- export interface ICascaderOption {
- label: string;
- value: any;
- children?: ICascaderOption[];
- }
- export interface ICascaderProps extends IBaseProps {
-
- animationType: 'transform' | 'position';
-
- value: any[];
-
- defaultValue: any[];
-
- options: ICascaderOption[];
-
- placeholder: string;
-
- cancelText: string;
-
- disabled?: boolean;
-
- title: string;
-
- okText: string;
-
- indicatorStyle?: string;
-
- indicatorClassName?: string;
-
- maskStyle?: string;
-
- maskClassName?: string;
-
- onOk?: (value: any[], selectedOptions: ICascaderOption[], e: Record<string, any>) => void;
-
- onCancel?: (e: Record<string, any>) => void;
-
- onFormat?: (value: any[], selectedOptions: ICascaderOption[]) => string;
-
- onVisibleChange?: (visible: boolean, e: Record<string, any>) => void;
-
- onChange?: (value: any[], selectedOptions: ICascaderOption[], e: Record<string, any>) => void;
-
- maskClosable: boolean;
-
- popClassName: string;
-
- popStyle: string;
- }
- export declare const CascaderDefaultProps: Partial<ICascaderProps>;
- export declare const CascaderFunctionalProps: Partial<ICascaderProps>;
|