Browse Source

chore: 优化一下

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

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

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

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

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

Loading…
Cancel
Save