xxx
This commit is contained in:
@@ -67,6 +67,7 @@ export default function Hoc(WithComponent){
|
||||
}
|
||||
render(){
|
||||
this.aData=this.props.data;
|
||||
// console.log(this.props)
|
||||
if(this.aData && this.aData.length>0 && this.isInit){
|
||||
for(let i=0;i<this.aData.length;i++){
|
||||
if(i===0){
|
||||
@@ -77,7 +78,12 @@ export default function Hoc(WithComponent){
|
||||
}
|
||||
}
|
||||
return (
|
||||
<WithComponent {...this.props} changeImg={this.changeImg.bind(this)} stop={this.stop.bind(this)} autoPlay={this.autoPlay.bind(this)} chenxuan="xxxxxxxxxx"></WithComponent>
|
||||
<WithComponent
|
||||
{...this.props}
|
||||
changeImg={this.changeImg.bind(this)}
|
||||
stop={this.stop.bind(this)}
|
||||
autoPlay={this.autoPlay.bind(this)} chenxuan="xxxxxxxxxx">
|
||||
</WithComponent>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user