@if (!recursiveHierarchy) { @for (row of rows$ | async; track row) { @if (row.columns) { @for (field of row.columns; track field) { @if (field.properties) { @for (property of field.properties; track property) { } } } } @else { @if ($any(row).properties) { @for (property of $any(row).properties | keyvalue; track property) { } } } } @for (level0Column of columns$ | async; track level0Column) { @if (level0Column.columns) { @for (level1Column of level0Column.columns; track trackByName($index, level1Column)) { @if (!!level1Column.columns) { @for (level2Column of level1Column.columns; track trackByName($index, level2Column)) { @if (!!level2Column.columns) { @for (level3Column of level2Column.columns; track trackByName($index, level3Column)) { @if (!!level3Column.columns) { @for (level4Column of level3Column.columns; track trackByName($index, level4Column)) { } } @if (!level3Column.columns) { } } } @if (!level2Column.columns) { } } } @if (!level1Column.columns) { } } } @if (!level0Column.columns) { } }
@if (options?.showToolbar) { {{title}} @if (options?.columnPinning) { } @if (options?.columnHiding) { } @if (options?.allowAdvancedFiltering) { } @if (options?.exportExcel || options?.exportCsv) { 导出到 Excel 文件 导出到 CSV 文件 } } } @if (recursiveHierarchy) { @for (row of rows$ | async; track row) { @if (isArray(row)) { @for (field of row; track field) { @if (field.properties) { @for (property of field.properties; track property) { } } } } @else { @if ($any(row).properties) { @for (property of $any(row).properties | keyvalue; track property) { } } } } @for (level0Column of columns$ | async; track level0Column) { @if (!!level0Column.columns) { @for (level1Column of level0Column?.columns; track trackByName($index, level1Column)) { @if (!!level1Column.columns) { @for (level2Column of level1Column.columns; track trackByName($index, level2Column)) { @if (!!level2Column.columns) { @for (level3Column of level2Column.columns; track trackByName($index, level3Column)) { @if (!!level3Column.columns) { @for (level4Column of level3Column.columns; track trackByName($index, level4Column)) { } } @if (!level3Column.columns) { } } } @if (!level2Column.columns) { } } } @if (!level1Column.columns) { } } } @if (!level0Column.columns) { } }
{{title}} @if (options?.columnPinning) { } @if (options?.columnHiding) { } @if (options?.allowAdvancedFiltering) { } @if (options?.exportExcel || options?.exportCsv) { Custom text for the excel export entry Custom text for the CSV export entry } }