8231_testToMaster_2448 #997

Merged
alexm merged 400 commits from 8231_testToMaster_2448 into master 2024-11-26 06:28:29 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 77cb2d84be - Show all commits

View File

@ -335,8 +335,9 @@ function handleScroll() {
function handleSelection({ evt, added, rows: selectedRows }, rows) {
if (evt?.shiftKey && added) {
const rowIndex = selectedRows[0].$index;
selected.value.length = 0;
for (const row of rows) {
if (row.$index > rowIndex) break;
if (row.$index == rowIndex) break;
selected.value.push(row);
}
}
@ -440,7 +441,6 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) {
:virtual-scroll="isTableMode"
@virtual-scroll="handleScroll"
@row-click="(_, row) => rowClickFunction && rowClickFunction(row)"
@update:selected="emit('update:selected', $event)"
@selection="(details) => handleSelection(details, rows)"
>
<template #top-left v-if="!$props.withoutHeader">