我正在使用 libreact-bootstrap-sweetalert來處理彈出窗口。到目前為止,一切都很好。但是,當我嘗試實現他們的其中一個道具時(此處showCloseButton描述),關閉按鈕不會顯示在我的警報中的任何位置。然后,我嘗試在他們的示例中復制粘貼代碼,這里是代碼:<SweetAlert custom showCancel showCloseButton confirmBtnText="Yes" cancelBtnText="No" confirmBtnBsStyle="primary" cancelBtnBsStyle="default" customIcon="https://raw.githubusercontent.com/djorg83/react-bootstrap-sweetalert/master/demo/assets/thumbs-up.jpg" title="Do you like thumbs?" onConfirm={this.onConfirm} onCancel={this.onCancel}> You will find they are up!</SweetAlert>“x”關閉按鈕仍然沒有顯示在我的警報中。然后,我嘗試在他們的示例中顯示警報,顯示關閉按鈕!這里出了什么問題?我已經復制粘貼了,它不起作用。但是,它正在他們的示例網站上工作。無論如何,我使用^4.4.1的是react-bootstrap-sweetalert.
showCloseButton react-bootstrap-sweetalert 未顯示
森欄
2022-01-20 17:08:50