mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +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) {
|
||||
// 如果上一个是选中状态,则将之间的所有 check 都变成可选
|
||||
if (lastCheckedRow.checked) {
|
||||
if (maxLength && self.selectedRows.length < maxLength) {
|
||||
self.selectedRows.push(rowItem);
|
||||
if (maxLength) {
|
||||
if (self.selectedRows.length < maxLength) {
|
||||
self.selectedRows.push(rowItem);
|
||||
}
|
||||
} else {
|
||||
self.selectedRows.push(rowItem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user