fix: when transpose table and set disableHeaderSelect rowSeries not selected

This commit is contained in:
fangsmile 2024-10-31 17:04:01 +08:00
parent eb88b4334d
commit 7396c9dd58

View File

@ -1,3 +1,4 @@
import type { ListTable } from '../..';
import type { SimpleHeaderLayoutMap } from '../../layout';
import type { Scenegraph } from '../../scenegraph/scenegraph';
import type { SelectAllOnCtrlAOption } from '../../ts-types';
@ -73,7 +74,10 @@ export function updateSelectPosition(
_startRow = table.columnHeaderLevelCount;
}
// 行号列选中
if (disableRowSeriesNumberSelect && table.options.rowSeriesNumber) {
if (
(disableRowSeriesNumberSelect || (disableHeaderSelect && (table as ListTable).transpose)) &&
table.options.rowSeriesNumber
) {
_startCol += 1;
}