From 5caa0596c5a89b793b97f21b2713fbe1ea15dc75 Mon Sep 17 00:00:00 2001 From: "525833532@qq.com" Date: Wed, 17 Aug 2022 14:46:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20data-area=E4=BC=A0?= =?UTF-8?q?=E5=8F=82=20=20string=20=E8=BD=AC=20object?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/admin.js b/public/static/admin.js index 741fe1e6a..be4ea1410 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -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); }) });