This is the code that netizens used to expand EasyUI.
You can modify it yourself according to actual needs.
$.modalDialog2.handler This handler represents the pop-up dialog handle
$.modalDialog2.xxx The xxx can define the name by itself. It is mainly used to refresh certain objects when the pop-up window is closed. You can predefined the xxx object.
The code copy is as follows:
$.modalDialogTwo = function(options) {
if ($.modalDialogTwo.handler == undefined) {// Avoid repeated popups
var opts = $.extend({
title: '',
width: 840,
height : 680,
modal : true,
onClose : function() {
$.modalDialogTwo.handler = undefined;
$(this).dialog('destroy');
},
onOpen : function() {
// parent.$.messager.progress({
// title: 'Tip',
// text : 'The data is loading, please wait...'
// });
}
}, options);
opts.modal = true;// Force this dialog to be patterned, ignoring the passed modal parameters
return $.modalDialogTwo.handler = $('<div/>').dialog(opts);
}
};
The above is how to use EasyUI to implement the second layer of pop-up frame. I hope everyone likes it.