zy-react-library/components/LeftTree/Basic/index.d.ts

26 lines
744 B
TypeScript

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<string, any>[];
}
/**
* 基础左侧树组件(不建议直接使用此组件,二次继承使用)
*/
declare const BasicLeftTree: FC<BasicLeftTreeProps>;
export default BasicLeftTree;