Commit c15ea08c8cc7e2dc304c95f65faf8db122afb22a
Committed by
GitHub
Merge pull request #2991 from kevinlincg/2.0
Performance Improvements when Table Select
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/components/table/table.vue
@@ -432,6 +432,7 @@ | @@ -432,6 +432,7 @@ | ||
432 | for (let i in this.objData) { | 432 | for (let i in this.objData) { |
433 | if (parseInt(i) === _index) { | 433 | if (parseInt(i) === _index) { |
434 | data = this.objData[i]; | 434 | data = this.objData[i]; |
435 | + break; | ||
435 | } | 436 | } |
436 | } | 437 | } |
437 | const status = !data._isChecked; | 438 | const status = !data._isChecked; |
@@ -448,6 +449,7 @@ | @@ -448,6 +449,7 @@ | ||
448 | for (let i in this.objData) { | 449 | for (let i in this.objData) { |
449 | if (parseInt(i) === _index) { | 450 | if (parseInt(i) === _index) { |
450 | data = this.objData[i]; | 451 | data = this.objData[i]; |
452 | + break; | ||
451 | } | 453 | } |
452 | } | 454 | } |
453 | const status = !data._isExpanded; | 455 | const status = !data._isExpanded; |