sweetAlert2中的告警對話框在layer之上的彈出

由於layer默認的彈窗z-index爲19891014,所有在layer之上彈窗出sweetAlert,需要修改sweetalert2.css,可將其中z-index的值大於19891014即可

.swal2-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px;
  background-color: transparent;
  z-index: 19891016; }
  .swal2-container:not(.in) {
    pointer-events: none; }
  .swal2-container.fade {
    -webkit-transition: background-color .1s;
    transition: background-color .1s; }
  .swal2-container.in {
    background-color: rgba(0, 0, 0, 0.4); }

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章