mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
dialog fix
This commit is contained in:
@@ -76,6 +76,8 @@ var DialogBox = options => {
|
||||
DialogBox.alert = function(options) {
|
||||
return DialogBox(merge({
|
||||
type: 'alert',
|
||||
title: '',
|
||||
message: '',
|
||||
closeOnClickOverlay: false,
|
||||
showCancelButton: false
|
||||
}, options));
|
||||
@@ -84,6 +86,8 @@ DialogBox.alert = function(options) {
|
||||
DialogBox.confirm = function(options) {
|
||||
return DialogBox(merge({
|
||||
type: 'confirm',
|
||||
title: '',
|
||||
message: '',
|
||||
closeOnClickOverlay: true,
|
||||
showCancelButton: true
|
||||
}, options));
|
||||
|
Reference in New Issue
Block a user