我尝试使用this在react-data-grid中呈现自定义行。但是如何为图像创建自定义行呢?我有两个列,分别名为image_large和image_small。自定义行渲染器的代码如下:
<div className="row" style={{minHeight: 300, margin: 20}}>
<div className="col-md-6">
<img onClick={() => this.button()}
src={this.state.imagePath}
id='image'
style={{maxWidth: '100%'}}/>
</div>
</div>https://stackoverflow.com/questions/51260479
复制相似问题