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: '条件格式——大于',