wip(i18n): treeTable 控制台提示统一为英文

pull/2695/head
sight 2025-05-23 19:14:57 +08:00
parent 0ec829a239
commit f7aa37daee
1 changed files with 3 additions and 3 deletions

View File

@ -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);