Browse Source

chore: 优化一下

es6
guy 3 years ago
parent
commit
79d7fe937f
  1. 5
      src/case/linersegment/button.linear.segment.js
  2. 4
      src/case/linersegment/linear.segment.js

5
src/case/linersegment/button.linear.segment.js

@ -5,7 +5,7 @@ BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
once: true,
readonly: true,
hgap: 10,
height: 25
height: 24
},
render: function () {
@ -15,6 +15,7 @@ BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
type: "bi.label",
text: o.text,
height: o.height,
textHeight: o.height - 2,
value: o.value,
hgap: o.hgap,
ref: function () {
@ -51,4 +52,4 @@ BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
this.text.setText(text);
}
});
BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton);
BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton);

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

@ -6,7 +6,7 @@ BI.LinearSegment = BI.inherit(BI.Widget, {
layouts: [{
type: "bi.center"
}],
height: 29
height: 30
},
render: function () {
@ -15,7 +15,7 @@ BI.LinearSegment = BI.inherit(BI.Widget, {
type: "bi.button_group",
items: BI.createItems(o.items, {
type: "bi.linear_segment_button",
height: o.height - 1
height: o.height
}),
layouts: o.layouts,
value: o.value,

Loading…
Cancel
Save