Browse Source

Merge pull request #3258 in VISUAL/fineui from DEC/fineui:release/11.0 to master

* commit '5f62e622f35b53a8239aed5b9d0029cf0c241119':
  REPORT-84736 feat: 多门户首页切换-平台前端开发
research/test
Aeolus.Zhang-张敬峥 2 years ago
parent
commit
1e7d9e5dc4
  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