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

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

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

/**
 * 行业类型下拉树组件
 */
declare const IndustrySelectTree: FC<IndustrySelectTreeProps>;

export default IndustrySelectTree;
