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

export interface IndustryCascaderItem {
  dict_value: string;
  dict_label: string;
  childrenList: IndustryCascaderItem[];
}

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

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

export default IndustryCascader;
