From bb64ab58e6147945423fcca9da3fe8bce13658be Mon Sep 17 00:00:00 2001 From: flowerField Date: Thu, 4 Feb 2021 14:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=87=8D=E5=91=BD=E5=90=8Dsh?= =?UTF-8?q?eet=E6=8F=90=E7=A4=BA=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/sheetBar.js | 3 ++- src/locale/zh.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controllers/sheetBar.js b/src/controllers/sheetBar.js index d39a0be..b5ef633 100644 --- a/src/controllers/sheetBar.js +++ b/src/controllers/sheetBar.js @@ -271,7 +271,8 @@ export function initialSheetBar(){ if(0 === $(this).text().length){ - alert(locale_sheetconfig.sheetNamecannotIsEmptyError); + tooltip.info("", locale_sheetconfig.sheetNamecannotIsEmptyError); + setTimeout(()=>{ $(this).text(oldSheetFileName); luckysheetsheetnameeditor($(this)); diff --git a/src/locale/zh.js b/src/locale/zh.js index 949d61d..895deb9 100644 --- a/src/locale/zh.js +++ b/src/locale/zh.js @@ -9773,7 +9773,7 @@ export default { noHide:"不能隐藏, 至少保留一个sheet标签", chartEditNoOpt:"图表编辑模式下不允许该操作!", sheetNameSpecCharError:"名称不能超过31个字符,首尾不能是' 且名称不能包含:\r\n[ ] : \\ ? * /", - sheetNamecannotIsEmptyError:"名称不能为空" + sheetNamecannotIsEmptyError:"名称不能为空!" }, conditionformat: { conditionformat_greaterThan: '条件格式——大于',