From 8075ba3ba7ba36a892c95b54eae83cbcaeebd611 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 12 May 2017 13:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=80=BC=E5=8C=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bi/widget.js | 14 +++++++------- docs/widget.js | 14 +++++++------- src/widget/numericalinterval/numericalinterval.js | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/bi/widget.js b/bi/widget.js index 949ebc2b82..bb810d8d12 100644 --- a/bi/widget.js +++ b/bi/widget.js @@ -12270,7 +12270,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { var self = this, c = this.constants, o = this.options; BI.NumericalInterval.superclass._init.apply(this, arguments) this.smallEditor = BI.createWidget({ - type: "bi.sign_editor", + type: "bi.editor", height: o.height - 2, watermark: BI.i18nText("BI-Basic_Unrestricted"), allowBlank: true, @@ -12307,7 +12307,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { }); this.bigEditor = BI.createWidget({ - type: "bi.sign_editor", + type: "bi.editor", height: o.height - 2, watermark: BI.i18nText("BI-Basic_Unrestricted"), allowBlank: true, @@ -12534,7 +12534,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setFocusEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_FOCUS, function () { + w.on(BI.Editor.EVENT_FOCUS, function () { self._setTitle(""); switch (self._checkValidation()) { case c.typeError: @@ -12560,7 +12560,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { }, _setBlurEvent: function (w) { var c = this.constants, self = this; - w.on(BI.SignEditor.EVENT_BLUR, function () { + w.on(BI.Editor.EVENT_BLUR, function () { BI.Bubbles.hide(c.typeError); BI.Bubbles.hide(c.numberError); BI.Bubbles.hide(c.signalError); @@ -12582,7 +12582,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setErrorEvent: function (w) { var c = this.constants, self = this - w.on(BI.SignEditor.EVENT_ERROR, function () { + w.on(BI.Editor.EVENT_ERROR, function () { self._checkValidation(); BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "center" @@ -12594,7 +12594,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setValidEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_VALID, function () { + w.on(BI.Editor.EVENT_VALID, function () { switch (self._checkValidation()) { case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { @@ -12617,7 +12617,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setEditorValueChangedEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_CHANGE, function () { + w.on(BI.Editor.EVENT_CHANGE, function () { switch (self._checkValidation()) { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { diff --git a/docs/widget.js b/docs/widget.js index 949ebc2b82..bb810d8d12 100644 --- a/docs/widget.js +++ b/docs/widget.js @@ -12270,7 +12270,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { var self = this, c = this.constants, o = this.options; BI.NumericalInterval.superclass._init.apply(this, arguments) this.smallEditor = BI.createWidget({ - type: "bi.sign_editor", + type: "bi.editor", height: o.height - 2, watermark: BI.i18nText("BI-Basic_Unrestricted"), allowBlank: true, @@ -12307,7 +12307,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { }); this.bigEditor = BI.createWidget({ - type: "bi.sign_editor", + type: "bi.editor", height: o.height - 2, watermark: BI.i18nText("BI-Basic_Unrestricted"), allowBlank: true, @@ -12534,7 +12534,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setFocusEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_FOCUS, function () { + w.on(BI.Editor.EVENT_FOCUS, function () { self._setTitle(""); switch (self._checkValidation()) { case c.typeError: @@ -12560,7 +12560,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { }, _setBlurEvent: function (w) { var c = this.constants, self = this; - w.on(BI.SignEditor.EVENT_BLUR, function () { + w.on(BI.Editor.EVENT_BLUR, function () { BI.Bubbles.hide(c.typeError); BI.Bubbles.hide(c.numberError); BI.Bubbles.hide(c.signalError); @@ -12582,7 +12582,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setErrorEvent: function (w) { var c = this.constants, self = this - w.on(BI.SignEditor.EVENT_ERROR, function () { + w.on(BI.Editor.EVENT_ERROR, function () { self._checkValidation(); BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "center" @@ -12594,7 +12594,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setValidEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_VALID, function () { + w.on(BI.Editor.EVENT_VALID, function () { switch (self._checkValidation()) { case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { @@ -12617,7 +12617,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setEditorValueChangedEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_CHANGE, function () { + w.on(BI.Editor.EVENT_CHANGE, function () { switch (self._checkValidation()) { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { diff --git a/src/widget/numericalinterval/numericalinterval.js b/src/widget/numericalinterval/numericalinterval.js index 4b523db483..e02ed03b56 100644 --- a/src/widget/numericalinterval/numericalinterval.js +++ b/src/widget/numericalinterval/numericalinterval.js @@ -31,7 +31,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { var self = this, c = this.constants, o = this.options; BI.NumericalInterval.superclass._init.apply(this, arguments) this.smallEditor = BI.createWidget({ - type: "bi.sign_editor", + type: "bi.editor", height: o.height - 2, watermark: BI.i18nText("BI-Basic_Unrestricted"), allowBlank: true, @@ -68,7 +68,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { }); this.bigEditor = BI.createWidget({ - type: "bi.sign_editor", + type: "bi.editor", height: o.height - 2, watermark: BI.i18nText("BI-Basic_Unrestricted"), allowBlank: true, @@ -295,7 +295,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setFocusEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_FOCUS, function () { + w.on(BI.Editor.EVENT_FOCUS, function () { self._setTitle(""); switch (self._checkValidation()) { case c.typeError: @@ -321,7 +321,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { }, _setBlurEvent: function (w) { var c = this.constants, self = this; - w.on(BI.SignEditor.EVENT_BLUR, function () { + w.on(BI.Editor.EVENT_BLUR, function () { BI.Bubbles.hide(c.typeError); BI.Bubbles.hide(c.numberError); BI.Bubbles.hide(c.signalError); @@ -343,7 +343,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setErrorEvent: function (w) { var c = this.constants, self = this - w.on(BI.SignEditor.EVENT_ERROR, function () { + w.on(BI.Editor.EVENT_ERROR, function () { self._checkValidation(); BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { offsetStyle: "center" @@ -355,7 +355,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setValidEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_VALID, function () { + w.on(BI.Editor.EVENT_VALID, function () { switch (self._checkValidation()) { case c.numberError: BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { @@ -378,7 +378,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, { _setEditorValueChangedEvent: function (w) { var self = this, c = this.constants; - w.on(BI.SignEditor.EVENT_CHANGE, function () { + w.on(BI.Editor.EVENT_CHANGE, function () { switch (self._checkValidation()) { case c.typeError: BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, {