Comparing version 0.0.10 to 0.0.11
@@ -83,3 +83,3 @@ import React from 'react'; | ||
activeIndex: 0, | ||
isFold: false, | ||
isFold: !!this.props.isFold, | ||
isHide: false | ||
@@ -95,2 +95,10 @@ } | ||
componentWillReceiveProps(nextProps) { | ||
if (this.props.isFold !== nextProps.isFold) { | ||
this.setState({ | ||
isFold: nextProps.isFold | ||
}); | ||
} | ||
} | ||
showChart() { | ||
@@ -151,5 +159,7 @@ let data = this.props.dataSource[this.state.activeIndex]; | ||
handleToggleFold() { | ||
var isFold = !this.state.isFold; | ||
this.setState({ | ||
isFold: !this.state.isFold | ||
isFold: isFold | ||
}); | ||
this.props.onFoldChange && this.props.onFoldChange(isFold); | ||
} | ||
@@ -156,0 +166,0 @@ |
{ | ||
"name": "hui-ui", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "hui-ui", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
12849
247