<div>
<Modal
isOpen={this.state.modalIsOpen}
onRequestClose={this.closeModal}
ariaHideApp={false}
style={customStyles}
>
{data.images.map(image => {
const img_url = image.name.startsWith('http') ? image.name : `${config.images}/${image.name}.jpg`
return (<div key={image.id} className="column is-6-mobile is-12-desktop is-12-tablet is-paddingless" style={{ marginTop: '10px'}}>
<img src={img_url}/>
</div>)
}
)}
</Modal>
</div>
我想在react-modal
和tablet
上禁用mobile
。我不知道如何解决,请帮忙。