Browse Source

无JIRA任务 统一item.mulitselect和item.singleselect.radio 图标和文字的布局行为

master
zsmj1994 4 years ago
parent
commit
f8a30ba6ec
  1. 5
      src/case/button/item.multiselect.js
  2. 5
      src/case/button/item.singleselect.radio.js

5
src/case/button/item.multiselect.js

@ -11,7 +11,8 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
logic: {
dynamic: false
},
textHgap: 5,
iconWrapperWidth: 16,
textHgap: 0,
textRgap: 0
});
},
@ -47,7 +48,7 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
items: BI.LogicFactory.createLogicItemsByDirection("left", {
type: "bi.center_adapt",
items: [this.checkbox],
width: 16
width: o.iconWrapperWidth
}, this.text)
}))));
},

5
src/case/button/item.singleselect.radio.js

@ -11,7 +11,8 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, {
dynamic: false
},
height: 24,
textHgap: 5,
iconWrapperWidth: 16,
textHgap: 0,
textRgap: 0
});
},
@ -42,7 +43,7 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, {
items: BI.LogicFactory.createLogicItemsByDirection("left", {
type: "bi.center_adapt",
items: [this.radio],
width: 16
width: o.conWrapperWidth
}, this.text)
}))));
},

Loading…
Cancel
Save