From 889c33cb17d89274f3a2e98be69a59cf287e2839 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 17 Jun 2021 23:38:29 +0800 Subject: [PATCH] bugfix --- src/case/ztree/0.treeview.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/case/ztree/0.treeview.js b/src/case/ztree/0.treeview.js index a54c8f162..c4310caf0 100644 --- a/src/case/ztree/0.treeview.js +++ b/src/case/ztree/0.treeview.js @@ -336,10 +336,11 @@ BI.TreeView = BI.inherit(BI.Pane, { BI.each(ns, function (i, n) { n.isParent = n.isParent || n.parent; n.value = BI.isUndefined(n.value) ? n.text : n.value; + if (BI.isUndefined(n.text)) { + n.text = n.value; + } if (n.text === null) { n.text = "(null)"; - } else if (BI.isUndefined(n.text)) { - n.text = n.value; } if (BI.isNull(n.title)) { n.title = n.text;