From 361a1b78d414a89f0428e902386867c6e97baf29 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 1 Jun 2017 19:18:22 +0800 Subject: [PATCH] add --- bi/base.js | 2 +- docs/base.js | 2 +- src/base/tree/treeview.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bi/base.js b/bi/base.js index 0e20f47e8..b656b208b 100644 --- a/bi/base.js +++ b/bi/base.js @@ -1717,7 +1717,7 @@ BI.TreeView = BI.inherit(BI.Pane, { _getNodeValue: function (node) { //去除标红 - return node.value == null ? node.text.replace(/<[^>]+>/g, "") : node.value; + return node.value == null ? node.text.replace(/<[^>]+>/g, "").replaceAll(" ", " ") : node.value; }, //获取半选框值 diff --git a/docs/base.js b/docs/base.js index 0e20f47e8..b656b208b 100644 --- a/docs/base.js +++ b/docs/base.js @@ -1717,7 +1717,7 @@ BI.TreeView = BI.inherit(BI.Pane, { _getNodeValue: function (node) { //去除标红 - return node.value == null ? node.text.replace(/<[^>]+>/g, "") : node.value; + return node.value == null ? node.text.replace(/<[^>]+>/g, "").replaceAll(" ", " ") : node.value; }, //获取半选框值 diff --git a/src/base/tree/treeview.js b/src/base/tree/treeview.js index 045388c4d..bf87dc7c6 100644 --- a/src/base/tree/treeview.js +++ b/src/base/tree/treeview.js @@ -216,7 +216,7 @@ BI.TreeView = BI.inherit(BI.Pane, { _getNodeValue: function (node) { //去除标红 - return node.value == null ? node.text.replace(/<[^>]+>/g, "") : node.value; + return node.value == null ? node.text.replace(/<[^>]+>/g, "").replaceAll(" ", " ") : node.value; }, //获取半选框值