Browse Source

BI-126032 fix: 设置不生效

es6
jimmychai 2 years ago
parent
commit
8ab0b25f33
  1. 2
      packages/fineui/src/widget/singleslider/singleslider.js

2
packages/fineui/src/widget/singleslider/singleslider.js

@ -141,7 +141,7 @@ export class SingleSlider extends Single {
} }
); );
this.label.on(SignEditor.EVENT_CONFIRM, () => { this.label.on(SignEditor.EVENT_CONFIRM, () => {
const v = parseFloat(this.getValue()); const v = parseFloat(this.label.getValue());
const percent = this._getPercentByValue(v); const percent = this._getPercentByValue(v);
const significantPercent = parseFloat(percent.toFixed(1)); const significantPercent = parseFloat(percent.toFixed(1));
this._setAllPosition(significantPercent); this._setAllPosition(significantPercent);

Loading…
Cancel
Save