Browse Source

Pull request #211562: REPORT-84736 feat: 多门户首页切换-平台前端开发

Merge in DEC/fineui from ~KEVIN.KING/fineui:feature/x to feature/x

* commit '7871535f63ba8a22bd38a2faddc3905d60b923ae':
  REPORT-84736 feat: 多门户首页切换-平台前端开发
master
Kevin.King-王凯壮 2 years ago
parent
commit
91318388d0
  1. 10
      src/case/linearsegment/linear.segment.js
  2. 9
      src/case/segment/segment.js

10
src/case/linearsegment/linear.segment.js

@ -47,6 +47,14 @@ BI.LinearSegment = BI.inherit(BI.Widget, {
getValue: function () {
return this.buttonGroup.getValue();
}
},
populate: function (buttons) {
var o = this.options;
this.buttonGroup.populate([BI.createItems(buttons, {
type: "bi.linear_segment_button",
height: o.height
})])
},
});
BI.shortcut("bi.linear_segment", BI.LinearSegment);

9
src/case/segment/segment.js

@ -58,6 +58,15 @@ BI.Segment = BI.inherit(BI.Widget, {
getValue: function () {
return this.buttonGroup.getValue();
},
populate: function (buttons) {
var o = this.options;
this.buttonGroup.populate([BI.createItems(buttons, {
type: "bi.segment_button",
height: BI.toPix(o.height, 2),
whiteSpace: o.whiteSpace,
})]);
},
});
BI.Segment.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.segment", BI.Segment);

Loading…
Cancel
Save