我不知道这是否可行,但是是否有可能在 swal SweetAlert 警报模式下激活或创建垂直滚动条?
问题是我收到了非常大的错误列表,并且超出了模式显示限制。
$.ajax({
url: "/financeiro-gerenciar/remover-financeiro",
type: "POST",
data: { ids: selecedtRows },
traditional: true,
success: function (result) {
stopLoadGlobal();
//Desmarcar o select do header
$("#dtFinanceiroIndex .selectable-all").prop('checked', false);
reload_dtFinanceiroIndex();
if (result.success) {
swal("Sucesso", result.message + " :)", "success");
return false;
}
else {
//console.log(result.errors.value.errors)
if (!result.success) {
var errosRecebidos = result.message + "\n";
$.each(result.errors.value.errors, function (key, value) {
errosRecebidos = errosRecebidos + '\n' + value
});
}
swal("Atenção", errosRecebidos + " :(", "error");
return false;
}
},
error: function () {
stopLoadGlobal();
alert("Oops! Algo deu errado.");
return false;
}
});
CSS:
.sweet-overlay {
/*z-index: 100000000000 !important;*/
z-index: 999999999 !important;
}
.sweet-alert {
/*z-index: 100000000000 !important;*/
z-index: 999999999 !important;
}
.sweet-alert .swal-text {
max-height: 6em; /* To be adjusted as you like */
overflow-y: scroll;
width: 100%;
}
哔哔one
相关分类