Browse Source

Pull request #1335: DEC-13302 fix: linear_segment支持设置layouts

Merge in VISUAL/fineui from ~FRANK.QIU/fineui:master to master

* commit '6ce899d4f739ff0d6f7f40749c255823b173a835':
  DEC-13302 fix: linear_segment支持设置layouts
master
Frank.Qiu 5 years ago
parent
commit
dd8763e9d0
  1. 7
      src/case/linersegment/linear.segment.js

7
src/case/linersegment/linear.segment.js

@ -3,6 +3,9 @@ BI.LinearSegment = BI.inherit(BI.Widget, {
props: { props: {
baseCls: "bi-linear-segment bi-split-bottom", baseCls: "bi-linear-segment bi-split-bottom",
items: [], items: [],
layouts: [{
type: "bi.center"
}],
height: 29 height: 29
}, },
@ -14,9 +17,7 @@ BI.LinearSegment = BI.inherit(BI.Widget, {
type: "bi.linear_segment_button", type: "bi.linear_segment_button",
height: o.height - 1 height: o.height - 1
}), }),
layout: [{ layouts: o.layouts,
type: "bi.center"
}],
listeners: [{ listeners: [{
eventName: "__EVENT_CHANGE__", eventName: "__EVENT_CHANGE__",
action: function () { action: function () {

Loading…
Cancel
Save