import type { FC } from "react";
import type { BasicCascaderProps } from "../Basic";

interface Data {
  dict_value: string;
  dict_label: string;
  childrenList: Data[];
}

/**
 * 组件属性
 */
export interface IndustryCascaderProps extends Omit<BasicCascaderProps, "options" | "placeholder" | "nameKey" | "idKey" | "childrenKey" | "onGetNodePaths" | "onGetData"> {
  /** 获取父级节点 */
  onGetNodePaths?: (nodes: Data[]) => void;
  /** 获取数据 */
  onGetData?: (data: Data[], processedData: Data[]) => void;
}

/**
 * 行业类型级联组件
 */
declare const IndustryCascader: FC<IndustryCascaderProps>;

export default IndustryCascader;
