新增删除列表前的确认弹窗
This commit is contained in:
@@ -55,10 +55,11 @@ export default {
|
||||
|
||||
.main {
|
||||
flex: auto;
|
||||
min-height: 50px;
|
||||
min-height: 40px;
|
||||
padding: 15px;
|
||||
font-size: 14px;
|
||||
max-width: 320px;
|
||||
min-width: 220px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,11 @@ const dialog = {
|
||||
}
|
||||
})
|
||||
}
|
||||
dialog.confirm = options => dialog({ ...options, showCancel: true })
|
||||
dialog.confirm = options => dialog(
|
||||
typeof options == 'string'
|
||||
? { message: options, showCancel: true }
|
||||
: { ...options, showCancel: true },
|
||||
)
|
||||
|
||||
Vue.prototype.$dialog = dialog
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user