|
@@ -76,6 +76,16 @@ class SlideItem extends react.Component{
|
|
|
const params = this.state;
|
|
|
handleConfirm&&handleConfirm(params);
|
|
|
}
|
|
|
+ componentWillReceiveProps(next){
|
|
|
+ if(this.props.show!==next.show){
|
|
|
+ const seleData = deepClone(this.props.seleData||[]);
|
|
|
+ const seleId = deepClone(this.props.seleId||[]);
|
|
|
+ this.setState({
|
|
|
+ seleData:seleData||"",
|
|
|
+ seleId:seleId||[]
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
render(){
|
|
|
const {data} = this.props;
|
|
|
const {seleId} = this.state;
|