亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

showCloseButton react-bootstrap-sweetalert 未顯示

showCloseButton react-bootstrap-sweetalert 未顯示

森欄 2022-01-20 17:08:50
我正在使用 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.
查看完整描述

1 回答

?
呼喚遠方

TA貢獻1856條經驗 獲得超11個贊

我認為該示例適用于其最新版本。請更新到最新!

showCloseButton這是因為我在 v4.4.1 中看不到該選項: https ://www.npmjs.com/package/react-bootstrap-sweetalert/v/4.4.1


查看完整回答
反對 回復 2022-01-20
  • 1 回答
  • 0 關注
  • 236 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號