Browse Source

Merge pull request #505 from llearn/dev

数组排序错误,导致getRangeHtml错位
master
mengshukeji 5 years ago
committed by GitHub
parent
commit
25244578ad
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/global/api.js

4
src/global/api.js

@ -1850,8 +1850,8 @@ export function getRangeHtml(options = {}) {
let cpdata = "";
let colgroup = "";
rowIndexArr = rowIndexArr.sort();
colIndexArr = colIndexArr.sort();
rowIndexArr = rowIndexArr.sort((a, b) => a - b);
colIndexArr = colIndexArr.sort((a, b) => a - b);
for (let i = 0; i < rowIndexArr.length; i++) {
let r = rowIndexArr[i];

Loading…
Cancel
Save