From 2f4a6680b5377688e0e07cd13a2fa287ccef3859 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 23 Jan 2018 15:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A54.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/bundle.js | 2 ++ dist/case.js | 1 + dist/fineui.js | 2 ++ dist/widget.js | 1 + src/case/tree/tree.display.js | 1 + src/widget/numbereditor/number.editor.js | 1 + 6 files changed, 8 insertions(+) diff --git a/dist/bundle.js b/dist/bundle.js index fc1ff4100..0f448d35c 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -75716,6 +75716,7 @@ BI.DisplayTree = BI.inherit(BI.TreeView, { selectedMulti: false, dblClickExpand: false, showIcon: false, + nameIsHTML: true, showTitle: false }, data: { @@ -89376,6 +89377,7 @@ BI.NumberEditor = BI.inherit(BI.Widget, { self.fireEvent(BI.NumberEditor.EVENT_CHANGE); }); this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { + this.setValue(BI.parseFloat(this.getValue())); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); }); this.topBtn = BI.createWidget({ diff --git a/dist/case.js b/dist/case.js index 126f393aa..56c8d2909 100644 --- a/dist/case.js +++ b/dist/case.js @@ -13300,6 +13300,7 @@ BI.DisplayTree = BI.inherit(BI.TreeView, { selectedMulti: false, dblClickExpand: false, showIcon: false, + nameIsHTML: true, showTitle: false }, data: { diff --git a/dist/fineui.js b/dist/fineui.js index 96a7d63a3..b6f10557a 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -77470,6 +77470,7 @@ BI.DisplayTree = BI.inherit(BI.TreeView, { selectedMulti: false, dblClickExpand: false, showIcon: false, + nameIsHTML: true, showTitle: false }, data: { @@ -91130,6 +91131,7 @@ BI.NumberEditor = BI.inherit(BI.Widget, { self.fireEvent(BI.NumberEditor.EVENT_CHANGE); }); this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { + this.setValue(BI.parseFloat(this.getValue())); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); }); this.topBtn = BI.createWidget({ diff --git a/dist/widget.js b/dist/widget.js index d8d55c23d..4117a1f24 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -12865,6 +12865,7 @@ BI.NumberEditor = BI.inherit(BI.Widget, { self.fireEvent(BI.NumberEditor.EVENT_CHANGE); }); this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { + this.setValue(BI.parseFloat(this.getValue())); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); }); this.topBtn = BI.createWidget({ diff --git a/src/case/tree/tree.display.js b/src/case/tree/tree.display.js index 175d5c06b..002ede97d 100644 --- a/src/case/tree/tree.display.js +++ b/src/case/tree/tree.display.js @@ -21,6 +21,7 @@ BI.DisplayTree = BI.inherit(BI.TreeView, { selectedMulti: false, dblClickExpand: false, showIcon: false, + nameIsHTML: true, showTitle: false }, data: { diff --git a/src/widget/numbereditor/number.editor.js b/src/widget/numbereditor/number.editor.js index 121d4b84b..d634edf47 100644 --- a/src/widget/numbereditor/number.editor.js +++ b/src/widget/numbereditor/number.editor.js @@ -35,6 +35,7 @@ BI.NumberEditor = BI.inherit(BI.Widget, { self.fireEvent(BI.NumberEditor.EVENT_CHANGE); }); this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { + this.setValue(BI.parseFloat(this.getValue())); self.fireEvent(BI.NumberEditor.EVENT_CONFIRM); }); this.topBtn = BI.createWidget({