修复 data-area传参 string 转 object

This commit is contained in:
525833532@qq.com 2022-08-17 14:46:23 +08:00
parent 37168fab94
commit 5caa0596c5

View File

@ -983,7 +983,7 @@ $(function () {
onEvent('click', '[data-modal]', function () {
var un = undefined, emap = this.dataset, data = {open_type: 'modal'};
return applyRuleValue(this, data, function () {
return $.form.modal(emap.modal, data, emap.title || this.innerText || '编辑', un, un, un, emap.area || emap.width || '800px', emap.offset || 'auto', emap.full !== un);
return $.form.modal(emap.modal, data, emap.title || this.innerText || '编辑', un, un, un, (typeof emap.area === 'string' ? eval("(" + emap.area + ")") : undefined) || emap.width || '800px', emap.offset || 'auto', emap.full !== un);
})
});