Preparing search index...
The search index is not available
Tango LowCode Builder
Tango LowCode Builder
@music163/tango-helpers
filterTreeData
Function filterTreeData
filter
Tree
Data
<
T
>
(
array
,
predict
,
childrenProp
?
,
onlyLeaf
?
)
:
T
[]
树形嵌套数据的过滤
Type Parameters
T
=
unknown
Parameters
array
:
T
[]
输入的数组
predict
:
(
(
leaf
:
T
)
=>
boolean
)
断言函数,过滤出符合判断函数的数据
(
leaf
)
:
boolean
Parameters
leaf
:
T
Returns
boolean
childrenProp
:
string
= 'children'
子属性的名字
onlyLeaf
:
boolean
= false
是否子探测叶子结点,即存在子节点的父节点不执行断言函数
Returns
T
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Tango LowCode Builder
Loading...
树形嵌套数据的过滤