2025-11-08 12:07:29 +08:00
|
|
|
import type { FC } from "react";
|
|
|
|
|
import type { BasicLeftTreeProps } from "../Basic";
|
|
|
|
|
|
2026-04-21 15:59:53 +08:00
|
|
|
interface Data {
|
|
|
|
|
value: string;
|
|
|
|
|
label: string;
|
|
|
|
|
children: Data[];
|
|
|
|
|
[key: string]: any;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-08 12:07:29 +08:00
|
|
|
/**
|
|
|
|
|
* 组件属性
|
|
|
|
|
*/
|
2026-04-21 15:59:53 +08:00
|
|
|
export interface AreaLeftTreeProps extends Omit<BasicLeftTreeProps, "treeData" | "nameKey" | "idKey" | "childrenKey" | "onGetNodePaths" | "onGetData"> {
|
|
|
|
|
/** 获取父级节点 */
|
|
|
|
|
onGetNodePaths?: (nodes: Data[]) => void;
|
|
|
|
|
/** 获取数据 */
|
|
|
|
|
onGetData?: (data: Data[], processedData: Data[]) => void;
|
2025-11-08 12:07:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 属地左侧树组件
|
|
|
|
|
*/
|
|
|
|
|
declare const AreaLeftTree: FC<AreaLeftTreeProps>;
|
|
|
|
|
|
|
|
|
|
export default AreaLeftTree;
|