Preparing search index...
The search index is not available
rock-utils
rock-utils
arrayToTree
arrayToTree
Function arrayToTree
array
To
Tree
(
data
:
any
[]
, parentKey
?:
string
, rowKey
?:
string
)
:
any
[]
Description
数组转 Tree
Parameters
data:
any
[]
数据源
parentKey:
string
= "parentId"
rowKey:
string
= "id"
数据唯一标识
Returns
any
[]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
rock-
utils
array
To
Tree
de
Repeat
diff
For
Two
Array
divide
Array
flat
Tree
To
Array
group
By
intersection
For
Two
Array
to
Local
Amount
union
Array
validate
Money
array
To
Tree
Generated using
TypeDoc
Description
数组转 Tree