mirror of https://github.com/layui/layui
wip(i18n): treeTable 控制台提示统一为英文
parent
0ec829a239
commit
f7aa37daee
|
@ -400,7 +400,7 @@ layui.define(['table'], function (exports) {
|
||||||
Class.prototype.getTreeNode = function (data) {
|
Class.prototype.getTreeNode = function (data) {
|
||||||
var that = this;
|
var that = this;
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return hint.error(layui.$t('找不到节点数据'));
|
return hint.error('Node data not found');
|
||||||
}
|
}
|
||||||
var options = that.getOptions();
|
var options = that.getOptions();
|
||||||
var treeOptions = options.tree;
|
var treeOptions = options.tree;
|
||||||
|
@ -422,7 +422,7 @@ layui.define(['table'], function (exports) {
|
||||||
var that = this;
|
var that = this;
|
||||||
var treeNodeData = that.getNodeDataByIndex(index);
|
var treeNodeData = that.getNodeDataByIndex(index);
|
||||||
if (!treeNodeData) {
|
if (!treeNodeData) {
|
||||||
return hint.error(layui.$t('找不到节点数据'));
|
return hint.error('Node data not found by index: ' + index);
|
||||||
}
|
}
|
||||||
var options = that.getOptions();
|
var options = that.getOptions();
|
||||||
var treeOptions = options.tree;
|
var treeOptions = options.tree;
|
||||||
|
@ -881,7 +881,7 @@ layui.define(['table'], function (exports) {
|
||||||
* */
|
* */
|
||||||
treeTable.expandAll = function (id, expandFlag) {
|
treeTable.expandAll = function (id, expandFlag) {
|
||||||
if (layui.type(expandFlag) !== 'boolean') {
|
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);
|
var that = getThisTable(id);
|
||||||
|
|
Loading…
Reference in New Issue