import { Component } from 'react'; declare type PropsKeyValue = { propPValue?: string; propValue: string; propName: string; }; 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 State = { options: OptionType[]; selectedMap: OptionType[]; clickedShowMap: { [stateName: string]: string | number; }; }; declare type PanelProps = { options: OptionType[]; value?: (string | number)[]; selectedMap?: OptionType[]; disabled?: boolean; keyValue?: PropsKeyValue; onChange?: (selectedMap: OptionType[]) => void; showCheckedStrategy?: 'SHOW_PARENT' | 'SHOW_CHILD' | 'SHOW_ALL'; [propName: string]: any; }; export declare class MultiCascaderPanel extends Component { state: State; keyValue: { propPValue: string; propValue: string; propName: string; }; constructor(props: PanelProps); componentDidMount(): void; /** * 这些场景需要有效触发 UNSAFE_componentWillReceiveProps 更新 * 1. options * 2. value: * 3. 或者 selectedMap: */ UNSAFE_componentWillReceiveProps(nextProps: any): void; initOptions: (initValue: (string | number)[], initValueOptions: OptionType[]) => void; onCheckLow2High: (checked: boolean, record: OptionType) => void; onCheckHigh2Low: (checked: boolean, record: 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; renderColumns: () => any[]; render(): JSX.Element; } export {};