|
|
@@ -485,26 +485,14 @@ function generateColumns(
|
|
|
) {
|
|
|
column.children = item.childTitle
|
|
|
.map((a: any, aindex: number) =>
|
|
|
- generateColumns(
|
|
|
- a,
|
|
|
- titleIndex + 1,
|
|
|
- title,
|
|
|
- hideRatioColumns,
|
|
|
- currentFontColor,
|
|
|
- ),
|
|
|
+ generateColumns(a, titleIndex + 1, title, hideRatioColumns, undefined),
|
|
|
)
|
|
|
.filter((col: any) => col !== null); // 过滤掉null项
|
|
|
}
|
|
|
if (item.child && Array.isArray(item.child) && item.child.length > 0) {
|
|
|
column.children = item.child
|
|
|
.map((a: any, aindex: number) =>
|
|
|
- generateColumns(
|
|
|
- a,
|
|
|
- titleIndex + 1,
|
|
|
- title,
|
|
|
- hideRatioColumns,
|
|
|
- currentFontColor,
|
|
|
- ),
|
|
|
+ generateColumns(a, titleIndex + 1, title, hideRatioColumns, undefined),
|
|
|
)
|
|
|
.filter((col: any) => col !== null); // 过滤掉null项
|
|
|
}
|