import { Component } from 'react'; declare type OptionType = { value: string | number; name?: string; fullName?: (string)[]; leaf: number; parent?: OptionType; children?: OptionType[]; checked: boolean; indeterminate: boolean; [propName: string]: any; }; declare type quickOptionsType = { value: string | number; name: string; options: OptionType[]; index?: number; checked?: boolean; indeterminate?: boolean; }; declare type State = { options: OptionType[]; optionsFlat: OptionType[]; quickOptions: quickOptionsType[]; selectedValue: (string | number)[]; selectedMap: OptionType[]; clickedShowMap: { [stateName: string]: string | number; }; searchValue: string; }; declare type PropsKeyValue = { propPValue: string; propValue: string; propName: string; }; declare type SelectProps = { options?: OptionType[]; optionsFlat?: OptionType[]; value?: string[] | number[]; disabled?: boolean; keyValue?: PropsKeyValue; showCheckedStrategy?: 'SHOW_PARENT' | 'SHOW_CHILD' | 'SHOW_ALL'; showCheckedFormat?: 'ALL' | 'SELF'; showSearch?: boolean; searchProps?: { [propName: string]: any; }; showSearchFormat?: 'ALL' | 'SELF'; onChange?: (values: string[] | number[]) => void; onCreateQuickOptions?: (options: OptionType[]) => quickOptionsType[]; }; export declare class MultiCascaderCard extends Component { state: State; keyValue: { propPValue: string; propValue: string; propName: string; }; multiCasacaderSelectRef: any; initState: {}; constructor(props: SelectProps); componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: any): void; shouldComponentUpdate(nextProps: any, nextState: any): boolean; initOptions: (initValue: (string | number)[], initValueOptions: OptionType[]) => void; resetOptions: (initValue: (string | number)[], initValueOptions: OptionType[]) => void; findRoot: (record: OptionType) => any; /** * @param options 最新操作过后的 options * 1. getSelectedMap 获取选中的项,此处可以根据 showCheckedStrategy 定制回填方式 * 2. 取值: * 2.1 SHOW_ALL:所有选中的节点都展示 * 2.2 SHOW_PARENT:当父节点的子节点都选中时,展示父节点(父节点:cheked:true ) —— 此为默认 * 2.3 SHOW_CHILD:展示最底层节点 */ getSelectedMap: (options: OptionType[]) => any; onCollect: (record: OptionType, options: OptionType[]) => { selectedMap: any; options: OptionType[]; }; onCheck: (checked: boolean, record: OptionType, e?: any) => void; onShow: (record: OptionType) => void; renderCheckedBox: () => JSX.Element; createQuickOptions: (optionsFlat: any) => quickOptionsType[]; resetQuickStatus: () => any; onQuickSelect(checked: any, record: any, index: any): void; renderQuickSelect(): JSX.Element; onClearAll: () => void; renderSelectedFormat: () => JSX.Element[]; renderSelectedList: () => JSX.Element; onSearchSelect: (val: any, option: any) => void; onSearch(val: any): void; renderSearchDataSource: () => JSX.Element[]; renderSearch: () => JSX.Element; render(): JSX.Element; } export {};