默认弹窗
this.$confirm('这是一段信息?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
}).catch(() => {
})
1、局部修改确定取消按钮的位置
注意:样式不能在到带scoped的style中
//设置取消按钮向右浮动,左magin为10px,即与确定按钮间距为10px
.btn-custom-cancel {
float: right;
margin-left: 10px;
}
this.$confirm('这是一段信息?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
cancelButtonClass: 'btn-custom-cancel',
type: 'warning'
}).then(() => {
}).catch(() => {
})
2、全局有修改确定取消按钮的位置
this.$confirm('这是一段信息?', '提示', {
conf