From 6ce899d4f739ff0d6f7f40749c255823b173a835 Mon Sep 17 00:00:00 2001 From: qcc Date: Mon, 18 May 2020 15:45:08 +0800 Subject: [PATCH] =?UTF-8?q?DEC-13302=20fix=EF=BC=9A=20linear=5Fsegment?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AElayouts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/linersegment/linear.segment.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/case/linersegment/linear.segment.js b/src/case/linersegment/linear.segment.js index c43bf2cc6e..22cc5fcd96 100644 --- a/src/case/linersegment/linear.segment.js +++ b/src/case/linersegment/linear.segment.js @@ -3,6 +3,9 @@ BI.LinearSegment = BI.inherit(BI.Widget, { props: { baseCls: "bi-linear-segment bi-split-bottom", items: [], + layouts: [{ + type: "bi.center" + }], height: 29 }, @@ -14,9 +17,7 @@ BI.LinearSegment = BI.inherit(BI.Widget, { type: "bi.linear_segment_button", height: o.height - 1 }), - layout: [{ - type: "bi.center" - }], + layouts: o.layouts, listeners: [{ eventName: "__EVENT_CHANGE__", action: function () {