import type { TreeProps } from "antd/es/tree"; import type { FC } from "react"; /** * 组件属性 */ export interface BasicLeftTreeProps extends TreeProps { /** 树形数据 title 字段,默认 name */ nameKey?: string; /** 树形数据 key 字段,默认 id */ idKey?: string; /** 树形数据 children 字段,默认 childrenList */ childrenKey?: string; /** 决定 onGetNodePaths 是否包含自身节点,默认 true */ onGetNodePathsIsIncludeOneself?: boolean; /** 获取父级节点 */ onGetNodePaths?: () => Record[]; /** 获取数据 */ onGetData?: (data: Record[]) => void; } /** * 基础左侧树组件(不建议直接使用此组件,二次继承使用) */ declare const BasicLeftTree: FC; export default BasicLeftTree;