Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(bug): bug
Browse files Browse the repository at this point in the history
bug
  • Loading branch information
wpxp123456 committed Aug 3, 2020
1 parent 07475f2 commit f057d7d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/controllers/conditionformat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,11 @@ const conditionformat = {
const conditionformat_Text = locale().conditionformat;

let rule = _this.editorRule.data;

if(rule == null){
return;
}

let ruleType = rule["type"],
ruleFormat = rule["format"],
conditionName = rule["conditionName"];
Expand Down
10 changes: 9 additions & 1 deletion src/controllers/insertFormula.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,18 @@ const insertFormula = {
let lvi = -1; //最后一个有值的参数索引

let formulatxt = $("#luckysheet-search-formula-parm").find(".luckysheet-modal-dialog-title-text").text();
let p = Store.luckysheet_function[formulatxt].p;

$("#luckysheet-search-formula-parm .parmBox").each(function(i, e){
let parmtxt = $(e).find(".txt input").val();
let parmRequire = Store.luckysheet_function[formulatxt].p[i].require;

let parmRequire;
if(i < p.length){
parmRequire = p[i].require;
}
else{
parmRequire = p[p.length - 1].require;
}

if(parmtxt == "" && parmRequire == "m"){
isVal = false;
Expand Down
2 changes: 0 additions & 2 deletions src/controllers/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ const selection = {
clipboardData = e.originalEvent.clipboardData;
}



Store.luckysheet_selection_range = [];
//copy范围
let minR = Store.luckysheet_select_save[0].row[0],
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/sheetmanage.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const sheetmanage = {
redo["type"] = "addSheet";
redo["sheetconfig"] = $.extend(true, {}, sheetconfig);
redo["index"] = index;
redo["Store.currentSheetIndex"] = Store.currentSheetIndex;
redo["currentSheetIndex"] = Store.currentSheetIndex;
Store.jfredo.push(redo);
}

Expand Down
4 changes: 2 additions & 2 deletions src/global/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,8 @@ let cellRender = function(r, c, start_r, start_c, end_r, end_c, value, luckyshee
luckysheetTableContent.fillRect(
(start_c + offsetLeft - 1) * Store.devicePixelRatio,
(start_r + offsetTop) * Store.devicePixelRatio,
(end_c - start_c + 2) * Store.devicePixelRatio,
(end_r - start_r) * Store.devicePixelRatio
(end_c - start_c) * Store.devicePixelRatio,
(end_r - start_r - 1) * Store.devicePixelRatio
)

//若单元格有批注(单元格右上角红色小三角标示)
Expand Down
2 changes: 1 addition & 1 deletion src/global/formula.js
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ const luckysheetformula = {
let curv = Store.flowdata[r][c];

if(isRealNull(value)){
if(curv == null || isRealNull(curv.v)){
if(curv == null || (isRealNull(curv.v) && curv.spl == null)){
_this.cancelNormalSelected();
return;
}
Expand Down

0 comments on commit f057d7d

Please sign in to comment.