From 6e2ad108c05c47be62301df1eb8fbe31f65237e2 Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Mon, 21 Aug 2023 11:43:37 +0800 Subject: [PATCH] =?UTF-8?q?JSY-31442=20style:=E6=95=B0=E5=80=BC=E5=8C=BA?= =?UTF-8?q?=E9=97=B4=E6=8E=A7=E4=BB=B6=E6=8F=90=E4=BE=9B=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fineui/src/widget/intervalslider/intervalslider.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/widget/intervalslider/intervalslider.js b/packages/fineui/src/widget/intervalslider/intervalslider.js index 894ef7a2c..b24a795af 100644 --- a/packages/fineui/src/widget/intervalslider/intervalslider.js +++ b/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,