Browse Source

Merge pull request #5176 from wenzhixin/fix/5133

Fixed complex group header bug
Dustin Utecht 5 years ago
parent
commit
964e8021de
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/utils/index.js

+ 4 - 5
src/utils/index.js

@@ -66,11 +66,10 @@ export default {
           r.colspanGroup = r.colspan
         }
 
-        for (let k = 0; k < rowspan; k++) {
-          flag[i + k][index] = true
-        }
-        for (let k = 0; k < colspan; k++) {
-          flag[i][index + k] = true
+        for (let j = 0; j < rowspan; j++) {
+          for (let k = 0; k < colspan; k++) {
+            flag[i + j][index + k] = true
+          }
         }
       }
     }