Browse Source

Merge pull request #246392 in DEC/fineui from master to feature/x

* commit 'e446eb9621f4537e9d3b1fc87e761993a2766d16':
  JSY-31442 style:数值区间控件提供高度设置
research/test
superman 1 year ago
parent
commit
0e275ec272
  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