diff --git a/src/controllers/conditionformat.js b/src/controllers/conditionformat.js index e50207f00..26165ecea 100644 --- a/src/controllers/conditionformat.js +++ b/src/controllers/conditionformat.js @@ -1902,8 +1902,8 @@ const conditionformat = { "addclass": "luckysheet-newEditorRule-dialog", "title": conditionformat_Text.newFormatRule, "content": content, - "botton": ` - `, + "botton": ` + `, "style": "z-index:100003" })); let $t = $("#luckysheet-newConditionRule-dialog") @@ -1930,7 +1930,9 @@ const conditionformat = { const conditionformat_Text = locale().conditionformat; let rule = _this.editorRule.data; - let ruleType = rule["type"], ruleFormat = rule["format"]; + let ruleType = rule["type"], + ruleFormat = rule["format"], + conditionName = rule["conditionName"]; let index, type1; if(ruleType == "dataBar" || ruleType == "colorGradation" || ruleType == "icons"){ @@ -1938,8 +1940,6 @@ const conditionformat = { type1 = ruleType; } else{ - let conditionName = rule["conditionName"]; - if(conditionName == "greaterThan" || conditionName == "lessThan" || conditionName == "betweenness" || conditionName == "equal" || conditionName == "textContains" || conditionName == "occurrenceDate"){ index = 1; diff --git a/src/controllers/handler.js b/src/controllers/handler.js index 6502a0d9b..ddbcdd5d6 100644 --- a/src/controllers/handler.js +++ b/src/controllers/handler.js @@ -3612,6 +3612,10 @@ export default function luckysheetHandler() { for(let c = copy_c1; c <= copy_c2; c++){ let cell = d[r][c]; + if(cell != null && cell.mc != null && cell.mc.rs == null){ + continue; + } + let v; if(cell != null){ if(cell.ct != null && cell.ct.fa.indexOf("w") > -1){ @@ -3625,6 +3629,10 @@ export default function luckysheetHandler() { v = ""; } + if(v == null){ + v = ""; + } + if(cpDataArr[r - copy_r1][c - copy_c1] != v){ isEqual = false; break; @@ -3633,7 +3641,6 @@ export default function luckysheetHandler() { } } - const locale_fontjson = locale().fontjson; if(txtdata.indexOf("luckysheet_copy_action_table") >- 1 && Store.luckysheet_copy_save["copyRange"] != null && Store.luckysheet_copy_save["copyRange"].length > 0 && isEqual){ diff --git a/src/css/luckysheet-core.css b/src/css/luckysheet-core.css index 744f1cf90..d55d3e68c 100644 --- a/src/css/luckysheet-core.css +++ b/src/css/luckysheet-core.css @@ -5667,11 +5667,11 @@ fieldset[disabled] a.btn { margin-bottom: 10px; } #luckysheet-modal-dialog-slider-alternateformat .modelbox{ + display: inline-block; width: 36px; padding: 2px; border: 2px solid #fff; box-sizing: border-box; - float: left; margin-right: 4px; margin-bottom: 4px; cursor: pointer; diff --git a/src/global/draw.js b/src/global/draw.js index 6ebbc9b67..81209b731 100644 --- a/src/global/draw.js +++ b/src/global/draw.js @@ -726,6 +726,7 @@ function luckysheetDrawMain(scrollWidth, scrollHeight, drawWidth, drawHeight, of let fontset = luckysheetfontformat(cell); luckysheetTableContent.font = fontset; + luckysheetTableContent.textBaseline = 'top'; //文本计算 宽度和高度 let cellValueSize = getCellValueSize(cell, value, luckysheetTableContent, cellWidth, cellHeight, space_width, space_height);