wrote a component of the broadcast graph, but never got the correct value when passing the value.
has a total of four pictures, and the img element has been rendered, but the imgNum=0,imgWidth=NAN,
picture data is obtained from the server through ajax. The
code is as follows:
<Banner imgNum={this.state.imgs.length} imgWidth={this.state.imgWidth}>
{this.state.imgs.map((val,index) => (
<img
key={index}
src={`${Tool.IP}/ydcsPhone/goodsInfo/downloadGoodsPicture?goodsInfoId=${this.gID}&goodsPictureName=${val}&session=${Tool.SESSION}`}
alt=""
style={{ float:"left",width:this.state.imgWidth,height:this.state.imgHeight}}
/>
))}
</Banner>