Browse Source

singleSlider值没存

es6
windy 7 years ago
parent
commit
fd0dafe48e
  1. 4
      src/addons/slider/slider/singleslider/singleslider.js

4
src/addons/slider/slider/singleslider/singleslider.js

@ -105,7 +105,9 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
}
});
this.label.on(BI.SignEditor.EVENT_CONFIRM, function () {
var percent = self._getPercentByValue(this.getValue());
var v = BI.parseFloat(this.getValue());
self.value = v;
var percent = self._getPercentByValue(v);
var significantPercent = BI.parseFloat(percent.toFixed(1));
self._setAllPosition(significantPercent);
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);

Loading…
Cancel
Save