vue + element-ui +若依框架,默认的删除弹窗如何修改样式
代码如下:需要自定义弹窗的样式
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm(
'是否确认删除排班表中警员编号为"' + row.policeCode + '"的数据项?',
"提示",
{
customClass: "message-logout",
}
)
.then(function () {
return delPoliceinfo(ids);
})
.then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
},
以下样式不可编写在scope 中
<style>
.message-logout {
background: #ffffff;
box-shadow: inset 0px 1px 11px 0px #3978ef;
border-radius: 3px;
border: 1px solid rgba(23, 129, 251, 0.4);
}
</style>