diff --git a/src/ui/Dialog.js b/src/ui/Dialog.js index 7562e20..ed494ea 100644 --- a/src/ui/Dialog.js +++ b/src/ui/Dialog.js @@ -28,7 +28,8 @@ function Dialog(dialog, options) { theme: window.bizui.theme, title: '', buttons: [], - destroyOnClose: false + destroyOnClose: false, + canClose: true }; this.options = $.extend(defaultOption, options || {}); this.init(this.options); @@ -59,7 +60,7 @@ Dialog.prototype = { .html([ '
', '', this.$main.attr('data-title') || options.title, '', - '
', + options.canClose ? '' : '', '
', '
' ].join(''))