From e26ac5e560b57db477e63fbf0b404e0813c2d4b9 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 11 Oct 2021 15:21:22 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/base/single/button/button.half.less | 7 ++++--- src/less/base/single/input/checkbox.less | 7 ++++--- src/less/base/tree/ztree.less | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/less/base/single/button/button.half.less b/src/less/base/single/button/button.half.less index d20250a14..2aa630fa1 100644 --- a/src/less/base/single/button/button.half.less +++ b/src/less/base/single/button/button.half.less @@ -2,13 +2,14 @@ .bi-half-button { .border-radius(2px); + box-sizing: border-box; &:after { position: absolute; - left: 3px; - top: 3px; + left: 2px; + top: 2px; width: 8px; height: 8px; background-color: @color-bi-background-highlight; content: ''; } -} \ No newline at end of file +} diff --git a/src/less/base/single/input/checkbox.less b/src/less/base/single/input/checkbox.less index 6d4e6731e..f3d0c15b5 100644 --- a/src/less/base/single/input/checkbox.less +++ b/src/less/base/single/input/checkbox.less @@ -4,6 +4,7 @@ & .checkbox-content, &.checkbox-content { .border-radius(2px); border: 1px solid @color-bi-border-dark-line; + box-sizing: border-box; &:after { position: absolute; display: table; @@ -12,8 +13,8 @@ border: 2px solid transparent; border-top: 0; border-left: 0; - width: 4px; - height: 8px; + width: 6px; + height: 9px; .transform(rotate(45deg) scale(1) translate(-50%, -50%)); content: ''; } @@ -74,4 +75,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/less/base/tree/ztree.less b/src/less/base/tree/ztree.less index 2b8fd5730..2d30068d9 100644 --- a/src/less/base/tree/ztree.less +++ b/src/less/base/tree/ztree.less @@ -108,6 +108,7 @@ .ztree li span.button.chk { &.bi-checkbox { border: 1px solid @color-bi-border-dark-line; + box-sizing: border-box; &.active { background-color: @color-bi-background-highlight; border-color: @color-bi-border-highlight;; @@ -115,6 +116,7 @@ } &.bi-half-button { border: 1px solid @color-bi-border-highlight; + box-sizing: border-box; } } From df4c9b41e5949a3c0ffb2751f29204eb2ba12a44 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 11 Oct 2021 15:24:32 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/input/checkbox/checkbox.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/single/input/checkbox/checkbox.js b/src/base/single/input/checkbox/checkbox.js index f9574dbdb..832af4551 100644 --- a/src/base/single/input/checkbox/checkbox.js +++ b/src/base/single/input/checkbox/checkbox.js @@ -25,8 +25,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, { self.checkbox = _ref; }, cls: "checkbox-content", - width: o.iconWidth - 2, - height: o.iconHeight - 2 + width: o.iconWidth, + height: o.iconHeight }] }; }, @@ -58,4 +58,4 @@ BI.Checkbox = BI.inherit(BI.BasicButton, { }); BI.Checkbox.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.checkbox", BI.Checkbox); \ No newline at end of file +BI.shortcut("bi.checkbox", BI.Checkbox); From 0a7e903fb7d26812b91161cd169987c857a5e200 Mon Sep 17 00:00:00 2001 From: data Date: Mon, 11 Oct 2021 15:34:45 +0800 Subject: [PATCH 3/3] auto upgrade version to 2.0.20211011153425 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2bcda9854..f84f41827 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20211009135140", + "version": "2.0.20211011153425", "description": "fineui", "main": "dist/fineui.min.js", "types": "dist/lib/index.d.ts",