element-ui中 this.$confirm修改確定取消按鈕順序和樣式
首先其他博客上說是給 this.$confirm中添加取消樣式,我試過了無效文章來源:http://www.zghlxwxcb.cn/news/detail-621080.html
本人采用的方案是利用css的gap屬性,在項(xiàng)目默認(rèn)css文件中修改即可
// this.confirm刪除確認(rèn)框修改確定取消按鈕順序
.el-message-box__btns {
text-align: right;
padding: 5px 120px 0;
display: flex;
flex-direction: row-reverse;
gap: 65px;
}
.el-message-box__title {
padding-left: 0;
margin-bottom: 0;
font-size: 20px;
line-height: 1;
font-weight: 600;
color: #060606;
}
效果
文章來源地址http://www.zghlxwxcb.cn/news/detail-621080.html
到了這里,關(guān)于element-ui中 this.$confirm修改確定取消按鈕順序和樣式的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!