Skip to content

Commit

Permalink
Merge pull request #32 from zhaiyb/master
Browse files Browse the repository at this point in the history
添加dialog能否关闭配置项
  • Loading branch information
zhaiyb committed Oct 11, 2017
2 parents 75cddbf + 823b906 commit f5c1e4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -59,7 +60,7 @@ Dialog.prototype = {
.html([
'<div class="biz-dialog-title">',
'<span class="biz-dialog-title-text">', this.$main.attr('data-title') || options.title, '</span>',
'<i class="biz-dialog-close biz-icon">&#xe5cd;</i></div>',
options.canClose ? '<i class="biz-dialog-close biz-icon">&#xe5cd;</i></div>' : '</div>',
'<div class="biz-dialog-content"></div>',
'<div class="biz-dialog-bottom"></div>'
].join(''))
Expand Down

0 comments on commit f5c1e4e

Please sign in to comment.