react-antd-table-rowspan
Version:
react+antd表格指定的列,连续的,行合并
16 lines (15 loc) • 606 B
TypeScript
interface TreeDataFindParentParams {
/** 原始数据 */
origin: any[];
/** 要查找对比的值 */
value: string | number;
/** 要查找对比的字段名称,默认是id */
fieldName?: string;
/** 需要返回的是什么字段,默认取fieldName */
needFieldName?: string;
/** children字段名称,默认是children */
childrenName?: string;
}
/** TreeData查找所有父级 */
declare function TreeDataFindParent({ origin, fieldName, childrenName, value, needFieldName, }: TreeDataFindParentParams): any[];
export default TreeDataFindParent;