import { Component } from 'react'; declare type OptionType = { value: string | number; name?: string; fullName?: (string)[]; leaf: number; parent?: OptionType; children?: OptionType[]; checked: boolean; indeterminate: boolean; }; declare type State = { options: OptionType[]; optionsFlat: OptionType[]; 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; onChange?: (values: string[] | number[]) => void; showCheckedStrategy?: 'SHOW_PARENT' | 'SHOW_CHILD' | 'SHOW_ALL'; showCheckedFormat?: 'ALL' | 'SELF'; showSearchFormat?: 'ALL' | 'SELF'; selectProps?: { [propsName: string]: any; }; }; export declare class MultiCascaderSelect extends Component { state: State; keyValue: { propPValue: string; propValue: string; propName: string; }; multiCasacaderSelectRef: any; constructor(props: SelectProps); componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: any): void; shouldComponentUpdate(nextProps: any, nextState: any): boolean; initOptions: (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; renderCheckedDropdown: () => JSX.Element; onSearchSelect: (record: OptionType) => void; getSearchFiteredOptions(optionsFlat: OptionType[]): OptionType[]; renderSearchDropdown(): JSX.Element; renderDropdown: (menu: any) => any; onSelectChange: (values: any, option: any) => void; onDeselect: (value: { key: string | number; label: string; }) => void; onSearch(value: any): void; onBlur: () => void; getCheckedValueFormat: () => { key: any; label: any; }[]; render(): JSX.Element; } export {};