From 61b56bb20ca45ee20474b809086059fe2bb052ac Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Mon, 14 Jan 2019 21:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=A9=E6=94=BE=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=89=A9=E4=BD=93=E7=9A=84=E7=BC=A9=E6=94=BE=E6=88=90?= =?UTF-8?q?=E4=B8=BA=E5=AD=97=E7=AC=A6=E4=B8=B2bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/ui/Number.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShadowEditor.Web/src/ui/Number.js b/ShadowEditor.Web/src/ui/Number.js index 44c1ebc6..f50d9241 100644 --- a/ShadowEditor.Web/src/ui/Number.js +++ b/ShadowEditor.Web/src/ui/Number.js @@ -97,7 +97,7 @@ Number.prototype.render = function () { _this.setValue(_this.dom.value); if (_this.onChange) { - _this.onChange.call(_this, _this.dom.value); + _this.onChange.call(_this, parseFloat(_this.dom.value)); } }