Browse Source

BI-49178 fix:修改仪表板复用列表间距

es6
Guyi 5 years ago
parent
commit
56e806f6bf
  1. 7
      src/case/button/node/node.icon.arrow.js
  2. 6
      src/case/button/node/node.multilayer.icon.arrow.js

7
src/case/button/node/node.icon.arrow.js

@ -62,16 +62,17 @@ BI.IconArrowNode = BI.inherit(BI.NodeButton, {
}); });
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: this.checkbox el: this.checkbox
}, { }, {
width: 24, width: 16,
el: icon el: icon
}, this.text); }, this.text);
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,
rgap: 5
})))); }))));
}, },

6
src/case/button/node/node.multilayer.icon.arrow.js

@ -7,7 +7,7 @@ BI.MultiLayerIconArrowNode = BI.inherit(BI.NodeButton, {
id: "", id: "",
pId: "", pId: "",
open: false, open: false,
height: 24, height: 30,
iconHeight: 16, iconHeight: 16,
iconWidth: 16, iconWidth: 16,
iconCls: "" iconCls: ""
@ -40,7 +40,7 @@ BI.MultiLayerIconArrowNode = BI.inherit(BI.NodeButton, {
BI.count(0, o.layer, function () { BI.count(0, o.layer, function () {
items.push({ items.push({
type: "bi.layout", type: "bi.layout",
width: 24, width: 15,
height: o.height height: o.height
}); });
}); });
@ -48,7 +48,7 @@ BI.MultiLayerIconArrowNode = BI.inherit(BI.NodeButton, {
BI.createWidget({ BI.createWidget({
type: "bi.td", type: "bi.td",
element: this, element: this,
columnSize: BI.makeArray(o.layer, 24), columnSize: BI.makeArray(o.layer, 15),
items: [items] items: [items]
}); });
}, },

Loading…
Cancel
Save