This commit is contained in:
2026-08-11 13:47:48 +08:00
parent f9ee6d1e04
commit 993909cef7
36 changed files with 1916 additions and 21 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* 递归计算树形数据中应默认展开的行 key 列表(存在 children 的节点会被记录为父节点)
* @param {Array<Object>} data 树形数据
* @param {string} key 作为行标识的字段名
* @param {number|true} [depth=true] 递归层级限制,true 表示不限制层级
* @returns {Array} 默认展开的行 key 数组
*/
declare function getDefaultExpandRowKeys(data: Array<any>, key: string, depth?: number | true): any[];
export { getDefaultExpandRowKeys };