File tree Expand file tree Collapse file tree
packages/vtable/src/dataset Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1146,13 +1146,13 @@ export class Dataset {
11461146 ) : IAggregator {
11471147 const indicatorIndex = this . indicatorKeys . indexOf ( indicator ) ;
11481148 //#region 获取行和列的维度key,考虑到tree模式被折叠的情况 rowKey colKey会小于rows和columns的长度
1149- let rowDimensionKey ;
1149+ let rowDimensionKey : string | undefined ;
11501150 if ( indicatorPosition ?. position === 'row' ) {
11511151 rowDimensionKey = rowKey . length >= 2 ? this . rows [ rowKey . length - 2 ] : undefined ;
11521152 } else {
11531153 rowDimensionKey = this . rows [ rowKey . length - 1 ] ;
11541154 }
1155- let colDimensionKey ;
1155+ let colDimensionKey : string | undefined ;
11561156 if ( indicatorPosition ?. position === 'col' ) {
11571157 colDimensionKey = colKey . length >= 2 ? this . columns [ colKey . length - 2 ] : undefined ;
11581158 } else {
You can’t perform that action at this time.
0 commit comments