lilei %!s(int64=3) %!d(string=hai) anos
pai
achega
fa1292d152
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/components/Table/index.js

+ 3 - 3
src/components/Table/index.js

@@ -277,13 +277,13 @@ export default {
       if (selected) { //  选择
         this.selectedRows = [...this.selectedRows, ...changeRows]
       } else { //  取消
-        const arrId = []
+        const selectedRowsArr = []
         this.selectedRows.map((item, index) => {
           if(!changeRows.find(subItem => subItem[this.rowKeyName] == item[this.rowKeyName])){
-            arrId.push(item)
+            selectedRowsArr.push(item)
           }
         })
-        this.selectedRows = arrId
+        this.selectedRows = selectedRowsArr
       }
       this.updateSelect()
     },