From f7aa37daeebdd55ab5a0b13528312a52ab49cde2 Mon Sep 17 00:00:00 2001 From: sight <26325820+Sight-wcg@users.noreply.github.com> Date: Fri, 23 May 2025 19:14:57 +0800 Subject: [PATCH] =?UTF-8?q?wip(i18n):=20treeTable=20=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E6=8F=90=E7=A4=BA=E7=BB=9F=E4=B8=80=E4=B8=BA=E8=8B=B1?= =?UTF-8?q?=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/treeTable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/treeTable.js b/src/modules/treeTable.js index b72d9eb5..316038ad 100644 --- a/src/modules/treeTable.js +++ b/src/modules/treeTable.js @@ -400,7 +400,7 @@ layui.define(['table'], function (exports) { Class.prototype.getTreeNode = function (data) { var that = this; if (!data) { - return hint.error(layui.$t('找不到节点数据')); + return hint.error('Node data not found'); } var options = that.getOptions(); var treeOptions = options.tree; @@ -422,7 +422,7 @@ layui.define(['table'], function (exports) { var that = this; var treeNodeData = that.getNodeDataByIndex(index); if (!treeNodeData) { - return hint.error(layui.$t('找不到节点数据')); + return hint.error('Node data not found by index: ' + index); } var options = that.getOptions(); var treeOptions = options.tree; @@ -881,7 +881,7 @@ layui.define(['table'], function (exports) { * */ treeTable.expandAll = function (id, expandFlag) { if (layui.type(expandFlag) !== 'boolean') { - return hint.error(layui.$t('expandAll 的展开状态参数只接收true/false')) + return hint.error('treeTable.expandAll param "expandFlag" must be a boolean value.') } var that = getThisTable(id);