...
|
...
|
@@ -4,19 +4,30 @@ |
|
|
* @date: 2016/01/06
|
|
|
*/
|
|
|
var $ = require('yoho-jquery'),
|
|
|
Dialog = require('../plugins/dialog').Dialog;
|
|
|
Dialog = require('../common/dialog').Dialog;
|
|
|
|
|
|
function createRDialog( ) {
|
|
|
return $('.r-dialog');
|
|
|
}
|
|
|
|
|
|
function RDialog(opts) {
|
|
|
var that = this;
|
|
|
var option = $.extend(true, {}, {
|
|
|
className: 'r-dialog',
|
|
|
closeIcon: true
|
|
|
}, opts);
|
|
|
|
|
|
option.closeIcon = '<span class="close">' + '<i class="iconfont"></i>' + '</span>';
|
|
|
option.content = '<div class="dialog-content">' + option.content + '</div>';
|
|
|
option.btns.name = '';
|
|
|
|
|
|
that.$el = createRDialog(opts);
|
|
|
this.$el.css({
|
|
|
'margin-top': -this.$el.height() / 2,
|
|
|
'margin-left': -this.$el.width() / 2
|
|
|
});
|
|
|
|
|
|
Dialog.call(this, option);
|
|
|
|
|
|
}
|
|
|
|
|
|
RDialog.prototype = new Dialog({
|
...
|
...
|
|