diff --git a/src/controllers/selection.js b/src/controllers/selection.js index 8b93ea7..8cabc2d 100644 --- a/src/controllers/selection.js +++ b/src/controllers/selection.js @@ -100,8 +100,6 @@ const selection = { if (!clipboardData) { // for chrome clipboardData = e.originalEvent.clipboardData; } - console.log('clipboardData', clipboardData); - Store.luckysheet_selection_range = []; //copy范围 @@ -189,10 +187,18 @@ const selection = { cpdata += ``; } - for (let j = 0; j < colIndexArr.length; j++) { let c = colIndexArr[j]; + if(r == rowIndexArr[0]){ + if(Store.config == null || Store.config["columnlen"] == null || Store.config["columnlen"][c.toString()] == null){ + colgroup += ''; + } + else { + colgroup += ''; + } + } + if (Store.config["colhidden"] != null && Store.config["colhidden"][c] != null) { continue; } @@ -202,15 +208,6 @@ const selection = { if (d[r] != null && d[r][c] != null) { let style = "", span = ""; - if(r == rowIndexArr[0]){ - if(Store.config == null || Store.config["columnlen"] == null || Store.config["columnlen"][c.toString()] == null){ - colgroup += ''; - } - else { - colgroup += ''; - } - } - let reg = /^(w|W)((0?)|(0\.0+))$/; let c_value; if(d[r][c].ct != null && d[r][c].ct.fa != null && d[r][c].ct.fa.match(reg)){ @@ -509,15 +506,6 @@ const selection = { column += ""; - if(r == rowIndexArr[0]){ - if(Store.config == null || Store.config["columnlen"] == null || Store.config["columnlen"][c.toString()] == null){ - colgroup += ''; - } - else { - colgroup += ''; - } - } - column = replaceHtml(column, {"style": style, "span": ""}); column += ""; }