Browse Source

Pull request #3646: JSY-31442 style:数值区间控件提供高度设置

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit '6e2ad108c05c47be62301df1eb8fbe31f65237e2':
  JSY-31442 style:数值区间控件提供高度设置
research/test
Claire.Tang-唐锦霞 1 year ago
parent
commit
e446eb9621
  1. 7
      packages/fineui/src/widget/intervalslider/intervalslider.js

7
packages/fineui/src/widget/intervalslider/intervalslider.js

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

Loading…
Cancel
Save