From 2b7fd4eac7a65e9520155385b2eacb215b433931 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 1 Jul 2021 19:34:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?BI-89305=20fix:=20=E6=A0=91=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=9C=AA=E5=AE=8C=E6=88=90=E6=97=B6getValue?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/ztree/1.asynctree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/case/ztree/1.asynctree.js b/src/case/ztree/1.asynctree.js index 21ed1c161..9bff9ee63 100644 --- a/src/case/ztree/1.asynctree.js +++ b/src/case/ztree/1.asynctree.js @@ -219,7 +219,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, { _getJoinValue: function () { if (!this.nodes) { - return {}; + return this.options.paras.selectedValues || {}; } var checkedValues = this._getSelectedValues(); if (BI.isEmpty(checkedValues)) { From a9ebec12c43adf4e749fad4c7e672f822d905be5 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 1 Jul 2021 19:37:09 +0800 Subject: [PATCH 2/2] changelog --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index f673102f6..d651819f8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,7 @@ # 更新日志 +2.0(2021-07) +- 修复了树控件节点未初始化时调用树的getValue始终为空的问题 + 2.0(2021-05) - 支持搜索的控件支持搜索包含空格的字符串 - 解决了树列表populate调用两次itemsCreator的问题