|
|
@ -31,6 +31,7 @@ export class IntervalSlider extends Single { |
|
|
|
EDITOR_R_GAP: 60, |
|
|
|
EDITOR_R_GAP: 60, |
|
|
|
EDITOR_HEIGHT: 20, |
|
|
|
EDITOR_HEIGHT: 20, |
|
|
|
SLIDER_WIDTH_HALF: 15, |
|
|
|
SLIDER_WIDTH_HALF: 15, |
|
|
|
|
|
|
|
LABEL_HEIGHT: 30, |
|
|
|
SLIDER_WIDTH: 30, |
|
|
|
SLIDER_WIDTH: 30, |
|
|
|
SLIDER_HEIGHT: 30, |
|
|
|
SLIDER_HEIGHT: 30, |
|
|
|
TRACK_HEIGHT: 24, |
|
|
|
TRACK_HEIGHT: 24, |
|
|
@ -60,6 +61,7 @@ export class IntervalSlider extends Single { |
|
|
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
render() { |
|
|
|
const c = this._constant; |
|
|
|
const c = this._constant; |
|
|
|
|
|
|
|
const o = this.options; |
|
|
|
this.enable = false; |
|
|
|
this.enable = false; |
|
|
|
this.valueOne = ""; |
|
|
|
this.valueOne = ""; |
|
|
|
this.valueTwo = ""; |
|
|
|
this.valueTwo = ""; |
|
|
@ -150,7 +152,7 @@ export class IntervalSlider extends Single { |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: VerticalFillLayout.xtype, |
|
|
|
type: VerticalFillLayout.xtype, |
|
|
|
rowSize: [30, 30], |
|
|
|
rowSize: [o.labelHeight || c.LABEL_HEIGHT, o.sliderHeight || c.SLIDER_HEIGHT], |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
this._createLabelWrapper(), |
|
|
|
this._createLabelWrapper(), |
|
|
|
{ |
|
|
|
{ |
|
|
@ -250,6 +252,7 @@ export class IntervalSlider extends Single { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_createLabelWrapper() { |
|
|
|
_createLabelWrapper() { |
|
|
|
|
|
|
|
const o = this.options; |
|
|
|
const c = this._constant; |
|
|
|
const c = this._constant; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
@ -272,7 +275,7 @@ export class IntervalSlider extends Single { |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
height: c.SLIDER_HEIGHT, |
|
|
|
height: o.labelHeight || c.LABEL_HEIGHT, |
|
|
|
}, |
|
|
|
}, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
|
left: 0, |
|
|
|
left: 0, |
|
|
|