Comparing version 1.0.2 to 1.1.0
# History | ||
--- | ||
## 1.1.0 / 2016-01-25 | ||
- change `onDrop` params (from `originExpandedKeys` to `rawExpandedKeys`) | ||
## 1.0.x / 2016-01-15 | ||
- change onSelect/onCheck params | ||
- change `onSelect`/`onCheck` params | ||
@@ -7,0 +10,0 @@ ## 0.26.x / 2016-01-13 |
@@ -90,3 +90,3 @@ 'use strict'; | ||
// Controlled expand, save and then reset | ||
this.getOriginExpandedKeys(); | ||
this.getRawExpandedKeys(); | ||
st.expandedKeys = expandedKeys; | ||
@@ -134,3 +134,3 @@ } | ||
if (expandedKeys) { | ||
this.getOriginExpandedKeys(); | ||
this.getRawExpandedKeys(); | ||
st.expandedKeys = expandedKeys; | ||
@@ -182,3 +182,3 @@ } | ||
if ('expandedKeys' in this.props) { | ||
res.originExpandedKeys = [].concat(_toConsumableArray(this._originExpandedKeys)) || [].concat(_toConsumableArray(this.state.expandedKeys)); | ||
res.rawExpandedKeys = [].concat(_toConsumableArray(this._rawExpandedKeys)) || [].concat(_toConsumableArray(this.state.expandedKeys)); | ||
} | ||
@@ -389,6 +389,6 @@ this.props.onDrop(res); | ||
}, { | ||
key: 'getOriginExpandedKeys', | ||
value: function getOriginExpandedKeys() { | ||
if (!this._originExpandedKeys && 'expandedKeys' in this.props) { | ||
this._originExpandedKeys = [].concat(_toConsumableArray(this.state.expandedKeys)); | ||
key: 'getRawExpandedKeys', | ||
value: function getRawExpandedKeys() { | ||
if (!this._rawExpandedKeys && 'expandedKeys' in this.props) { | ||
this._rawExpandedKeys = [].concat(_toConsumableArray(this.state.expandedKeys)); | ||
} | ||
@@ -497,3 +497,3 @@ } | ||
} | ||
// console.log(this.state.expandedKeys, this._originExpandedKeys, props.children); | ||
// console.log(this.state.expandedKeys, this._rawExpandedKeys, props.children); | ||
var checkKeys = (0, _util.getTreeNodesStates)(props.children, this.state.checkedKeys, true); | ||
@@ -500,0 +500,0 @@ this.checkPartKeys = checkKeys.checkPartKeys; |
{ | ||
"name": "rc-tree", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "tree ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61552
12
1546