diff --git a/src/controllers/updateCell.js b/src/controllers/updateCell.js index f9a947c..a85a10f 100644 --- a/src/controllers/updateCell.js +++ b/src/controllers/updateCell.js @@ -101,7 +101,7 @@ export function luckysheetupdateCell(row_index1, col_index1, d, cover, isnotfocu $("#luckysheet-input-box").removeAttr("style").css({ "background-color": "rgb(255, 255, 255)", "padding": "0px 2px", - "font-size": "13px", + "font-size": `${Store.defaultFontSize}pt`, "right": "auto", "overflow-y": "auto", "box-sizing": "initial", diff --git a/src/global/getdata.js b/src/global/getdata.js index 20c85b4..705c008 100644 --- a/src/global/getdata.js +++ b/src/global/getdata.js @@ -352,7 +352,7 @@ export function getFontStyleByCell(cell,checksAF,checksCF, isCheck=true){ style += "font-family: " + f + ";"; } - if(key == "fs" && value != "10"){ + if(key == "fs"){ style += "font-size: "+ value + "pt;"; } @@ -509,12 +509,12 @@ export function checkstatusByCell(cell, a){ } else if(a == "fs"){ if(foucsStatus == null){ - foucsStatus = "10"; + foucsStatus = String(Store.defaultFontSize); } else{ foucsStatus = foucsStatus[a]; if(foucsStatus == null){ - foucsStatus = "10"; + foucsStatus = String(Store.defaultFontSize); } } }