From 94082a5e77ab35b2223551d8e2ceef48066c6e24 Mon Sep 17 00:00:00 2001 From: Guyi Date: Tue, 27 Aug 2019 12:39:10 +0800 Subject: [PATCH 1/4] =?UTF-8?q?BI-49178=20fix=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8F=B6=E5=AD=90=E8=8A=82=E7=82=B9=E6=B2=A1=E6=9C=89=E7=BC=A9?= =?UTF-8?q?=E8=BF=9B=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/button/treeitem/item.multilayer.icon.treeleaf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/case/button/treeitem/item.multilayer.icon.treeleaf.js b/src/case/button/treeitem/item.multilayer.icon.treeleaf.js index f4fcafea7..d2f93adc4 100644 --- a/src/case/button/treeitem/item.multilayer.icon.treeleaf.js +++ b/src/case/button/treeitem/item.multilayer.icon.treeleaf.js @@ -42,7 +42,7 @@ BI.MultiLayerIconTreeLeafItem = BI.inherit(BI.BasicButton, { BI.count(0, o.layer, function () { items.push({ type: "bi.layout", - width: 24, + width: 15, height: o.height }); }); @@ -50,7 +50,7 @@ BI.MultiLayerIconTreeLeafItem = BI.inherit(BI.BasicButton, { BI.createWidget({ type: "bi.td", element: this, - columnSize: BI.makeArray(o.layer, 24), + columnSize: BI.makeArray(o.layer, 15), items: [items] }); }, From 3dc41c235320374cc73e6a7e7ab4f49d7aa79517 Mon Sep 17 00:00:00 2001 From: Guyi Date: Tue, 27 Aug 2019 15:27:31 +0800 Subject: [PATCH 2/4] =?UTF-8?q?BI-49178=20fix=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8F=B6=E5=AD=90=E8=8A=82=E7=82=B9=E9=97=B4=E8=B7=9D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/button/treeitem/item.icon.treeleaf.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/case/button/treeitem/item.icon.treeleaf.js b/src/case/button/treeitem/item.icon.treeleaf.js index a7a18358b..403ab03d4 100644 --- a/src/case/button/treeitem/item.icon.treeleaf.js +++ b/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 items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, { - width: 24, + width: 16, el: icon }, { el: this.text @@ -48,7 +48,8 @@ BI.IconTreeLeafItem = BI.inherit(BI.BasicButton, { BI.createWidget(BI.extend({ element: this }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, { - items: items + items: items, + hgap: 5 })))); }, From 505f944e500642662a572c6f17d3933abd93b1cc Mon Sep 17 00:00:00 2001 From: Guyi Date: Thu, 31 Oct 2019 15:54:29 +0800 Subject: [PATCH 3/4] =?UTF-8?q?BI-54505=20feat=EF=BC=9Ahover-hidden?= =?UTF-8?q?=E6=94=BE=E5=88=B0fineui=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/visual.less | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/less/visual.less b/src/less/visual.less index d2e19ae7b..cfc39e02c 100644 --- a/src/less/visual.less +++ b/src/less/visual.less @@ -324,4 +324,15 @@ visibility: visible; } } +} + +.hover-hidden(@cls) { + & .@{cls} { + visibility: visible; + } + &:hover { + & .@{cls} { + visibility: hidden; + } + } } \ No newline at end of file From 7ecce13022bef40b84e07ec59f17cccaca4f9483 Mon Sep 17 00:00:00 2001 From: Guyi Date: Thu, 31 Oct 2019 15:57:26 +0800 Subject: [PATCH 4/4] =?UTF-8?q?BI-54505=20refactor=EF=BC=9A=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/button/treeitem/item.icon.treeleaf.js | 5 ++--- src/case/button/treeitem/item.multilayer.icon.treeleaf.js | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/case/button/treeitem/item.icon.treeleaf.js b/src/case/button/treeitem/item.icon.treeleaf.js index 403ab03d4..a7a18358b 100644 --- a/src/case/button/treeitem/item.icon.treeleaf.js +++ b/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 items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, { - width: 16, + width: 24, el: icon }, { el: this.text @@ -48,8 +48,7 @@ BI.IconTreeLeafItem = BI.inherit(BI.BasicButton, { BI.createWidget(BI.extend({ element: this }, BI.LogicFactory.createLogic(type, BI.extend(o.logic, { - items: items, - hgap: 5 + items: items })))); }, diff --git a/src/case/button/treeitem/item.multilayer.icon.treeleaf.js b/src/case/button/treeitem/item.multilayer.icon.treeleaf.js index d2f93adc4..f4fcafea7 100644 --- a/src/case/button/treeitem/item.multilayer.icon.treeleaf.js +++ b/src/case/button/treeitem/item.multilayer.icon.treeleaf.js @@ -42,7 +42,7 @@ BI.MultiLayerIconTreeLeafItem = BI.inherit(BI.BasicButton, { BI.count(0, o.layer, function () { items.push({ type: "bi.layout", - width: 15, + width: 24, height: o.height }); }); @@ -50,7 +50,7 @@ BI.MultiLayerIconTreeLeafItem = BI.inherit(BI.BasicButton, { BI.createWidget({ type: "bi.td", element: this, - columnSize: BI.makeArray(o.layer, 15), + columnSize: BI.makeArray(o.layer, 24), items: [items] }); },