|
|
@ -94,7 +94,7 @@ export class IntervalSlider extends Single { |
|
|
|
); |
|
|
|
); |
|
|
|
this.labelOne.on(Editor.EVENT_CONFIRM, () => { |
|
|
|
this.labelOne.on(Editor.EVENT_CONFIRM, () => { |
|
|
|
const oldValueOne = this.valueOne; |
|
|
|
const oldValueOne = this.valueOne; |
|
|
|
const v = parseFloat(this.getValue()); |
|
|
|
const v = parseFloat(this.labelOne.getValue()); |
|
|
|
this.valueOne = v; |
|
|
|
this.valueOne = v; |
|
|
|
const percent = this._getPercentByValue(v); |
|
|
|
const percent = this._getPercentByValue(v); |
|
|
|
const significantPercent = parseFloat(percent.toFixed(1)); // 分成1000份
|
|
|
|
const significantPercent = parseFloat(percent.toFixed(1)); // 分成1000份
|
|
|
@ -123,7 +123,7 @@ export class IntervalSlider extends Single { |
|
|
|
); |
|
|
|
); |
|
|
|
this.labelTwo.on(Editor.EVENT_CONFIRM, () => { |
|
|
|
this.labelTwo.on(Editor.EVENT_CONFIRM, () => { |
|
|
|
const oldValueTwo = this.valueTwo; |
|
|
|
const oldValueTwo = this.valueTwo; |
|
|
|
const v = parseFloat(this.getValue()); |
|
|
|
const v = parseFloat(this.labelTwo.getValue()); |
|
|
|
this.valueTwo = v; |
|
|
|
this.valueTwo = v; |
|
|
|
const percent = this._getPercentByValue(v); |
|
|
|
const percent = this._getPercentByValue(v); |
|
|
|
const significantPercent = parseFloat(percent.toFixed(1)); |
|
|
|
const significantPercent = parseFloat(percent.toFixed(1)); |
|
|
|