From 5b21e591c357ffdcaf8a831bb232c5957193d87d Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Thu, 27 Apr 2017 15:25:08 +0800 Subject: [PATCH] deps: upgrade rc-tree@1.5.0 (#5917) --- components/tree/style/index.less | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/tree/style/index.less b/components/tree/style/index.less index 09834cd16..983b92131 100644 --- a/components/tree/style/index.less +++ b/components/tree/style/index.less @@ -16,8 +16,8 @@ list-style: none; white-space: nowrap; outline: 0; - a[draggable], - a[draggable="true"] { + span[draggable], + span[draggable="true"] { user-select: none; border-top: 2px transparent solid; border-bottom: 2px transparent solid; @@ -27,24 +27,24 @@ -webkit-user-drag: element; } &.drag-over { - > a[draggable] { + > span[draggable] { background-color: @primary-color; color: white; opacity: 0.8; } } &.drag-over-gap-top { - > a[draggable] { + > span[draggable] { border-top-color: @primary-color; } } &.drag-over-gap-bottom { - > a[draggable] { + > span[draggable] { border-bottom-color: @primary-color; } } &.filter-node { - > a { + > span { color: @highlight-color!important; font-weight: bold!important; } @@ -53,7 +53,7 @@ margin: 0; padding: 0 0 0 18px; } - a { + .@{tree-prefix-cls}-node-content-wrapper { display: inline-block; padding: 1px 5px; border-radius: 2px; @@ -142,8 +142,8 @@ } &-treenode-disabled { > span, - > a, - > a span { + > .@{tree-prefix-cls}-node-content-wrapper, + > .@{tree-prefix-cls}-node-content-wrapper span { color: @disabled-color; cursor: not-allowed; } diff --git a/package.json b/package.json index 6ae9e761f..819762ee6 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "rc-tabs": "~7.3.0", "rc-time-picker": "~2.3.3", "rc-tooltip": "~3.4.2", - "rc-tree": "~1.4.0", + "rc-tree": "~1.5.0", "rc-tree-select": "~1.9.0", "rc-upload": "~2.3.0", "rc-util": "^4.0.1",