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

BREAKING CHANGE: n

fix #278, fix #276, fix #267, fix #215
  • Loading branch information
wpxp123456 committed Dec 3, 2020
1 parent 92f3e75 commit 88aa6c5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/controllers/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -3318,7 +3318,7 @@ export default function luckysheetHandler() {
}

let luckysheetTableContent = $("#luckysheetTableContent").get(0).getContext("2d");

method.createHookFunction("sheetMouseup", Store.flowdata[row_index][col_index], {
r:row_index,
c:col_index,
Expand Down Expand Up @@ -4972,7 +4972,7 @@ export default function luckysheetHandler() {
});

//表格左上角点击 全选表格
$("#luckysheet-left-top").mousedown(function (event) {
$("#luckysheet-left-top").click(function (event) {
if(!checkProtectionAllSelected(Store.currentSheetIndex)){
return;
}
Expand Down
5 changes: 3 additions & 2 deletions src/controllers/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,9 @@ export function keyboardInitial(){
luckysheetMoveHighlightCell2("right", "rangeOfSelect");
}
else if (String.fromCharCode(kcode).toLocaleUpperCase() == "A") {//Ctrl + A 全选
$("#luckysheet-left-top").trigger("mousedown");
$(document).trigger("mouseup");
// $("#luckysheet-left-top").trigger("mousedown");
// $(document).trigger("mouseup");
$("#luckysheet-left-top").click()
}

event.preventDefault();
Expand Down
14 changes: 7 additions & 7 deletions src/controllers/menuButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const menuButton = {
"coloritem": '<div class="luckysheet-cols-menuitem luckysheet-mousedown-cancel ${class}"><div class="luckysheet-cols-menuitem-content luckysheet-mousedown-cancel">${name}</div></div>',
"subcolor": '<div id="luckysheet-icon-${id}-menuButton" class="luckysheet-cols-menu luckysheet-rightgclick-menu luckysheet-rightgclick-menu-sub luckysheet-menuButton-sub luckysheet-mousedown-cancel"> <div class="luckysheet-mousedown-cancel"> <div class="luckysheet-mousedown-cancel"> <input type="text" class="luckysheet-color-selected" /> </div> </div></div>',
"rightclickmenu": null,
"submenuhide": null,
"submenuhide": {},
focus: function($obj, value){
if($obj.attr("id")=="luckysheet-icon-font-family-menuButton"){
if (isdatatypemulti(value)["num"]) {
Expand Down Expand Up @@ -956,7 +956,7 @@ const menuButton = {
"borderType": type,
"color": color,
"style": style,
"range": Store.luckysheet_select_save
"range": $.extend(true, [], Store.luckysheet_select_save)
}

cfg["borderInfo"].push(borderInfo);
Expand Down Expand Up @@ -1115,7 +1115,7 @@ const menuButton = {
"borderType": itemvalue,
"color": color,
"style": style,
"range": Store.luckysheet_select_save
"range": $.extend(true, [], Store.luckysheet_select_save)
}

cfg["borderInfo"].push(borderInfo);
Expand Down Expand Up @@ -2874,7 +2874,7 @@ const menuButton = {
}
mouseclickposition($menuButton, menuleft, $(this).offset().top + 25, "lefttop");
});

$("body").on("mouseover mouseleave",".luckysheet-menuButton .luckysheet-cols-submenu", function(e){
let $t = $(this), attrid = $t.attr("itemvalue"),
$attr = $("#luckysheet-icon-" + attrid + "-menuButton");
Expand All @@ -2897,13 +2897,13 @@ const menuButton = {
$attr.css({ "top": top, "left": left }).show();
_this.rightclickmenu = $t;
} else {
clearTimeout(_this.submenuhide);
_this.submenuhide = setTimeout(function () { $attr.hide(); }, 200);
clearTimeout(_this.submenuhide[$attr.attr('id')]);
_this.submenuhide[$attr.attr('id')] = setTimeout(function () { $attr.hide(); }, 200);
}
}).on("mouseover mouseleave",".luckysheet-menuButton-sub", function(e){
if (e.type === "mouseover") {
_this.rightclickmenu.addClass("luckysheet-cols-menuitem-hover");
clearTimeout(_this.submenuhide);
clearTimeout(_this.submenuhide[$(this).attr('id')]);
}
else {
_this.rightclickmenu.removeClass("luckysheet-cols-menuitem-hover");
Expand Down
2 changes: 1 addition & 1 deletion src/global/border.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ function getBorderInfoCompute(sheetIndex) {
data = Store.luckysheetfile[getSheetIndex(sheetIndex)].data;
}

getBorderInfoComputeRange(0, data.length,0, data[0].length, sheetIndex);
borderInfoCompute = getBorderInfoComputeRange(0, data.length,0, data[0].length, sheetIndex);

return borderInfoCompute;
}
Expand Down
3 changes: 0 additions & 3 deletions src/global/method.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,6 @@ const method = {
dataVerificationCtrl[key] = defaultDataVerification[key];
}
}



},
editorChart:function(c){
let chart_selection_color = luckyColor[0];
Expand Down

0 comments on commit 88aa6c5

Please sign in to comment.