Browse Source

REPORT-63368 修复树组件展开后左边线对不齐问题

research/test
张敬峥 3 years ago
parent
commit
c2defdb567
  1. 2
      src/case/button/node/node.first.plus.js
  2. 2
      src/case/button/node/node.last.plus.js
  3. 2
      src/case/button/node/node.mid.plus.js
  4. 6
      src/less/base/tree/tree.expander.less
  5. 1
      src/less/resource/background.less
  6. 2
      src/widget/selecttree/nodes/node.first.plus.js
  7. 2
      src/widget/selecttree/nodes/node.last.plus.js
  8. 2
      src/widget/selecttree/nodes/node.mid.plus.js

2
src/case/button/node/node.first.plus.js

@ -50,7 +50,7 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 24,
width: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

2
src/case/button/node/node.last.plus.js

@ -50,7 +50,7 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 24,
width: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

2
src/case/button/node/node.mid.plus.js

@ -50,7 +50,7 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT / 2,
width: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

6
src/less/base/tree/tree.expander.less

@ -1,10 +1,12 @@
@import "../../index";
@import "../../image";
@import "../../lib/icon";
.bi-tree-expander-popup.line:before {
position: absolute;
content: "";
border-left: 1px dashed @color-bi-border-tree-expander-popup-line;
height: 100%;
left: 11px;
width: 24px;
.imagePath(@icon-tree-vertical-line-1, 0, 0, repeat-y);
}
.bi-tree-expander-popup.line.solid:before {

1
src/less/resource/background.less

@ -1,6 +1,7 @@
@import "../image";
@import "../lib/icon";
@import "../lib/background";
@import "../base/tree/tree.expander.less";
.bi-display-tree {
& .ztree li span.button.switch.center_open {

2
src/widget/selecttree/nodes/node.first.plus.js

@ -49,7 +49,7 @@ BI.SelectTreeFirstPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 24,
width: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

2
src/widget/selecttree/nodes/node.last.plus.js

@ -49,7 +49,7 @@ BI.SelectTreeLastPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 24,
width: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

2
src/widget/selecttree/nodes/node.mid.plus.js

@ -49,7 +49,7 @@ BI.SelectTreeMidPlusGroupNode = BI.inherit(BI.NodeButton, {
});
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left);
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, {
width: 24,
width: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
el: this.checkbox
}, this.text);
BI.createWidget(BI.extend({

Loading…
Cancel
Save