Browse Source

BI-49178 fix:修复叶子节点间距问题

es6
Guyi 5 years ago
parent
commit
3dc41c2353
  1. 5
      src/case/button/treeitem/item.icon.treeleaf.js

5
src/case/button/treeitem/item.icon.treeleaf.js

@ -40,7 +40,7 @@ BI.IconTreeLeafItem = BI.inherit(BI.BasicButton, {
}); });
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left); var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, { var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 24, width: 16,
el: icon el: icon
}, { }, {
el: this.text el: this.text
@ -48,7 +48,8 @@ BI.IconTreeLeafItem = BI.inherit(BI.BasicButton, {
BI.createWidget(BI.extend({ BI.createWidget(BI.extend({
element: this element: this
}, BI.LogicFactory.createLogic(type, BI.extend(o.logic, { }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, {
items: items items: items,
hgap: 5
})))); }))));
}, },

Loading…
Cancel
Save