guy 7 years ago
parent
commit
69ac3d8a47
  1. 6
      demo/js/widget/numberinterval/demo.number_interval.js
  2. 6
      dist/demo.js

6
demo/js/widget/numberinterval/demo.number_interval.js

@ -9,7 +9,7 @@ Demo.NumericalInterval = BI.inherit(BI.Widget, {
mounted: function () { mounted: function () {
var numerical = this.numerical; var numerical = this.numerical;
var label = this.label; var label = this.label;
numerical.on(BI.NumericalInterval.EVENT_CHANGE, function () { numerical.on(BI.NumberInterval.EVENT_CHANGE, function () {
var temp = numerical.getValue(); var temp = numerical.getValue();
var res = "大于" + (temp.closemin ? "等于 " : " ") + temp.min + " 小于" + (temp.closemax ? "等于 " : " ") + temp.max; var res = "大于" + (temp.closemin ? "等于 " : " ") + temp.min + " 小于" + (temp.closemax ? "等于 " : " ") + temp.max;
label.setValue(res); label.setValue(res);
@ -17,8 +17,6 @@ Demo.NumericalInterval = BI.inherit(BI.Widget, {
}, },
render: function () { render: function () {
var self = this; var self = this;
return { return {
@ -41,4 +39,4 @@ Demo.NumericalInterval = BI.inherit(BI.Widget, {
} }
}) })
BI.shortcut("demo.numberical_interval", Demo.NumericalInterval); BI.shortcut("demo.number_interval", Demo.NumericalInterval);

6
dist/demo.js vendored

@ -7993,7 +7993,7 @@ Demo.NumericalInterval = BI.inherit(BI.Widget, {
mounted: function () { mounted: function () {
var numerical = this.numerical; var numerical = this.numerical;
var label = this.label; var label = this.label;
numerical.on(BI.NumericalInterval.EVENT_CHANGE, function () { numerical.on(BI.NumberInterval.EVENT_CHANGE, function () {
var temp = numerical.getValue(); var temp = numerical.getValue();
var res = "大于" + (temp.closemin ? "等于 " : " ") + temp.min + " 小于" + (temp.closemax ? "等于 " : " ") + temp.max; var res = "大于" + (temp.closemin ? "等于 " : " ") + temp.min + " 小于" + (temp.closemax ? "等于 " : " ") + temp.max;
label.setValue(res); label.setValue(res);
@ -8001,8 +8001,6 @@ Demo.NumericalInterval = BI.inherit(BI.Widget, {
}, },
render: function () { render: function () {
var self = this; var self = this;
return { return {
@ -8025,7 +8023,7 @@ Demo.NumericalInterval = BI.inherit(BI.Widget, {
} }
}) })
BI.shortcut("demo.numberical_interval", Demo.NumericalInterval); BI.shortcut("demo.number_interval", Demo.NumericalInterval);
Demo.DirectionPathChooser = BI.inherit(BI.Widget, { Demo.DirectionPathChooser = BI.inherit(BI.Widget, {

Loading…
Cancel
Save