From fff756ff5fe36870b2764804c03006a16a43f1f0 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 28 Jul 2017 11:38:39 +0800 Subject: [PATCH] deps: upgrade rc-tree --- .../__tests__/__snapshots__/demo.test.js.snap | 96 +++++++++---------- components/tree/index.tsx | 8 +- components/tree/style/index.less | 20 +--- package.json | 2 +- 4 files changed, 55 insertions(+), 71 deletions(-) diff --git a/components/tree/__tests__/__snapshots__/demo.test.js.snap b/components/tree/__tests__/__snapshots__/demo.test.js.snap index 888b61111f..ad2b4df51c 100644 --- a/components/tree/__tests__/__snapshots__/demo.test.js.snap +++ b/components/tree/__tests__/__snapshots__/demo.test.js.snap @@ -10,7 +10,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = ` class="" >
      • { render() { const props = this.props; - const { prefixCls, className, showLine } = props; + const { prefixCls, className } = props; let checkable = props.checkable; - const classString = classNames({ - [`${prefixCls}-show-line`]: !!showLine, - }, className); return ( : checkable} > {this.props.children} diff --git a/components/tree/style/index.less b/components/tree/style/index.less index ccc87c7ecf..9214890982 100644 --- a/components/tree/style/index.less +++ b/components/tree/style/index.less @@ -102,16 +102,10 @@ &.@{tree-prefix-cls}-switcher-noop { cursor: default; } - &.@{tree-prefix-cls}-roots_open, - &.@{tree-prefix-cls}-center_open, - &.@{tree-prefix-cls}-bottom_open, - &.@{tree-prefix-cls}-noline_open { + &.@{tree-prefix-cls}-switcher_open { .antTreeSwitcherIcon(); } - &.@{tree-prefix-cls}-roots_close, - &.@{tree-prefix-cls}-center_close, - &.@{tree-prefix-cls}-bottom_close, - &.@{tree-prefix-cls}-noline_close { + &.@{tree-prefix-cls}-switcher_close { .antTreeSwitcherIcon(); .ie-rotate(3); &:after { @@ -174,17 +168,11 @@ &.@{tree-prefix-cls}-switcher-noop { .antTreeShowLineIcon("tree-doc-icon"); } - &.@{tree-prefix-cls}-roots_open, - &.@{tree-prefix-cls}-center_open, - &.@{tree-prefix-cls}-bottom_open, - &.@{tree-prefix-cls}-noline_open { + &.@{tree-prefix-cls}-switcher_open { color: @tree-showline-icon-color; .antTreeShowLineIcon("tree-showline-open-icon"); } - &.@{tree-prefix-cls}-roots_close, - &.@{tree-prefix-cls}-center_close, - &.@{tree-prefix-cls}-bottom_close, - &.@{tree-prefix-cls}-noline_close { + &.@{tree-prefix-cls}-switcher_close { color: @tree-showline-icon-color; .antTreeShowLineIcon("tree-showline-close-icon"); } diff --git a/package.json b/package.json index 9126cd4b50..84a166b586 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "rc-tabs": "~8.0.0", "rc-time-picker": "~2.4.1", "rc-tooltip": "~3.4.6", - "rc-tree": "~1.6.0", + "rc-tree": "~1.7.0", "rc-tree-select": "~1.10.2", "rc-upload": "~2.3.7", "rc-util": "^4.0.4",