From bfc5796e78c65b21c8d8ce0c695e8f9c9fe173e5 Mon Sep 17 00:00:00 2001 From: wanghaoo Date: Fri, 8 Mar 2019 10:21:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(fix=20=E5=8D=95=E5=87=BB=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=EF=BC=88onSelect=EF=BC=89=E5=BB=B6=E8=BF=9F=E9=97=AE=E9=A2=98)?= =?UTF-8?q?:=20fix=20=E5=8D=95=E5=87=BB=E4=BA=8B=E4=BB=B6=EF=BC=88onSelect?= =?UTF-8?q?=EF=BC=89=E5=BB=B6=E8=BF=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/Tree.css | 28 ++++++++++++++-------------- build/Tree.js | 1 - package.json | 2 +- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/build/Tree.css b/build/Tree.css index e7279d4..80845b9 100644 --- a/build/Tree.css +++ b/build/Tree.css @@ -31,12 +31,12 @@ .u-checkbox input[disabled] { cursor: not-allowed; } .u-checkbox input[type='checkbox']:focus + .u-checkbox-label:before { - border-color: rgb(245, 60, 50); } + border-color: rgb(30,136,229); } .u-checkbox.is-checked .u-checkbox-label:before { - -moz-box-shadow: inset 0 0 0 10px rgb(245, 60, 50); - -webkit-box-shadow: inset 0 0 0 10px rgb(245, 60, 50); - box-shadow: inset 0 0 0 10px rgb(245, 60, 50); - border-color: rgb(245, 60, 50); } + -moz-box-shadow: inset 0 0 0 10px rgb(30,136,229); + -webkit-box-shadow: inset 0 0 0 10px rgb(30,136,229); + box-shadow: inset 0 0 0 10px rgb(30,136,229); + border-color: rgb(30,136,229); } .u-checkbox.is-checked .u-checkbox-label:after { color: #fff; content: "\e658"; @@ -83,8 +83,8 @@ font-size: 14px; } .u-checkbox.u-checkbox-indeterminate .u-checkbox-label:before { - box-shadow: inset 0 0 0 10px rgb(245, 60, 50); - border-color: rgb(245, 60, 50); } + box-shadow: inset 0 0 0 10px rgb(30,136,229); + border-color: rgb(30,136,229); } .u-checkbox.u-checkbox-success.is-checked .u-checkbox-label:before { -moz-box-shadow: inset 0 0 0 10px rgb(76,175,80); @@ -144,8 +144,8 @@ position: relative; vertical-align: middle; } .u-tree .u-tree-checkbox-checked .u-tree-checkbox-inner, .u-tree .u-tree-checkbox-indeterminate .u-tree-checkbox-inner { - background-color: rgb(245, 60, 50); - border-color: rgb(245, 60, 50); } + background-color: rgb(30,136,229); + border-color: rgb(30,136,229); } .u-tree .u-tree-checkbox-inner { position: relative; top: 0; @@ -159,8 +159,8 @@ -webkit-transition: all .3s; transition: all .3s; } .u-tree .u-tree-checkbox-checked .u-tree-checkbox-inner, .u-tree .u-tree-checkbox-indeterminate .u-tree-checkbox-inner { - background-color: rgb(245, 60, 50); - border-color: rgb(245, 60, 50); } + background-color: rgb(30,136,229); + border-color: rgb(30,136,229); } .u-tree .u-tree-checkbox-disabled .u-tree-checkbox-inner { border-color: #d9d9d9; background-color: #f3f3f3; } @@ -263,11 +263,11 @@ .u-tree li a.u-tree-node-content-wrapper { width: calc(100% - 18px); } .u-tree li a:hover { - background-color: rgb(235, 236, 240); } + background-color: rgb(243,243,243); } .u-tree li a.u-tree-node-selected { - background-color: rgb(235, 236, 240); } + background-color: rgb(243,243,243); } .u-tree li a.u-tree-node-selected .u-tree-title { - color: rgb(245, 60, 50); } + color: rgb(30,136,229); } .u-tree li span.u-checkbox { margin: 2px 4px 0 0; } .u-tree li span.u-tree-switcher, diff --git a/build/Tree.js b/build/Tree.js index f49ade0..bba31bb 100644 --- a/build/Tree.js +++ b/build/Tree.js @@ -949,7 +949,6 @@ Tree.defaultProps = { onDragLeave: noop, onDrop: noop, onDragEnd: noop, - onDoubleClick: noop, tabIndexValue: 0 }; diff --git a/package.json b/package.json index 09e668f..ff37297 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bee-tree", - "version": "2.0.4", + "version": "2.0.5", "description": "Tree ui component for react", "keywords": [ "react",