dialog fix

This commit is contained in:
cookfront
2017-04-14 17:36:24 +08:00
parent 9255184f26
commit 1ab44ea055
5 changed files with 28 additions and 7 deletions

View File

@@ -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));