mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix: 修复 shift 点击时 maxKeepItemSelectionLength 失效问题 (#2827)
This commit is contained in:
parent
1ab8df289e
commit
3a8be30316
@ -1031,8 +1031,10 @@ export const TableStore = iRendererStore
|
|||||||
if (idx === -1) {
|
if (idx === -1) {
|
||||||
// 如果上一个是选中状态,则将之间的所有 check 都变成可选
|
// 如果上一个是选中状态,则将之间的所有 check 都变成可选
|
||||||
if (lastCheckedRow.checked) {
|
if (lastCheckedRow.checked) {
|
||||||
if (maxLength && self.selectedRows.length < maxLength) {
|
if (maxLength) {
|
||||||
self.selectedRows.push(rowItem);
|
if (self.selectedRows.length < maxLength) {
|
||||||
|
self.selectedRows.push(rowItem);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.selectedRows.push(rowItem);
|
self.selectedRows.push(rowItem);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user