gpt4 book ai didi

reactjs - react 引导模式不显示

转载 作者:行者123 更新时间:2023-12-03 13:28:03 24 4
gpt4 key购买 nike

我想显示react-bootstrap-modal,但只显示覆盖层,而模式不显示

import Modal from 'react-bootstrap-modal';
......
<Modal
show={this.state.open}
onHide={this.closeModal}
aria-labelledby="ModalHeader"
>
<Modal.Header closeButton>
<Modal.Title id='ModalHeader'>A Title Goes here</Modal.Title>
</Modal.Header>
<Modal.Body>
<p>Some Content here</p>
</Modal.Body>
<Modal.Footer>
// If you don't have anything fancy to do you can use
// the convenient `Dismiss` component, it will
// trigger `onHide` when clicked
<Modal.Dismiss className='btn btn-default'>Cancel</Modal.Dismiss>

// Or you can create your own dismiss buttons
<button className='btn btn-primary'>
Save
</button>
</Modal.Footer>
</Modal>
.....

截图:

image from browser

最佳答案

动画使用似乎有问题animation={false} <Modal animation={false}>
</Modal>

关于reactjs - react 引导模式不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41795987/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com