Browse Source

数组排序错误,导致getRangeHtml错位

master
ccm 5 years ago
parent
commit
6674130194
  1. 4
      src/global/api.js

4
src/global/api.js

@ -1848,8 +1848,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