From 37316b03e27d0fbbb2f40e2ebcdac5ce9d83642e Mon Sep 17 00:00:00 2001 From: break-wave <654896146@qq.com> Date: Tue, 11 May 2021 16:57:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(bug):=20=E5=B7=A5=E5=85=B7=E6=A0=8F?= =?UTF-8?q?=E7=BC=A9=E5=B0=8F=E5=90=8E=E5=86=8D=E6=94=BE=E5=A4=A7=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=9B=9E=E5=88=B0=E5=8E=9F=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/resize.js | 3 +-- src/controllers/toolbar.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/controllers/resize.js b/src/controllers/resize.js index 4d41356..4f9b4b1 100644 --- a/src/controllers/resize.js +++ b/src/controllers/resize.js @@ -117,7 +117,7 @@ export default function luckysheetsizeauto(isRefreshCanvas=true) { const $t = $(this)[0]; const $container = $("#luckysheet-wa-editor")[0]; - $container.appendChild(document.createTextNode(" ")); + // $container.appendChild(document.createTextNode(" ")); $container.appendChild($t); }); @@ -440,7 +440,6 @@ export function menuToolBarWidth() { return -1; } } - toobarElements.forEach((curr,index,arr)=>{ arr[index] = curr.ele; diff --git a/src/controllers/toolbar.js b/src/controllers/toolbar.js index e72c578..edbd095 100644 --- a/src/controllers/toolbar.js +++ b/src/controllers/toolbar.js @@ -846,10 +846,10 @@ export function createToolbarHtml() { let i = 0; showtoolbarConfig.forEach(function(key, i) { if (key === '|') { - const nameKeys = defaultToolbar[i - 1] + const nameKeys = showtoolbarConfig[i - 1] if(nameKeys !== '|') { buttonHTML.push( - `
` + `
` ); } } else { @@ -893,7 +893,7 @@ export function createToolbarHtml() { const nameKeys = defaultToolbar[i - 1] if(nameKeys !== '|') { buttonHTML.push( - `
` + `
` ); } } else {