mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
修复 data-area传参 string 转 object
This commit is contained in:
parent
37168fab94
commit
5caa0596c5
@ -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);
|
||||
})
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user