From 126f36a51de83968734646d8407e7f0b7838a214 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 13 Jul 2022 10:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20input[data-path]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/static/admin.js b/public/static/admin.js index 7068ac4fc..175a35e8f 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -607,6 +607,7 @@ $(function () { }).on('click', 'i.layui-icon-close', function (event) { event.stopPropagation(), $bt.attr('style', ''), $in.val(''); }).find('[data-file]').data('input', this).attr({ + 'data-path': $in.data('path') || '', 'data-size': $in.data('size') || 0, 'data-type': $in.data('type') || 'gif,png,jpg,jpeg', 'data-max-width': $in.data('max-width') || 0, 'data-max-height': $in.data('max-height') || 0, 'data-cut-width': $in.data('cut-width') || 0, 'data-cut-height': $in.data('cut-height') || 0, @@ -621,6 +622,7 @@ $(function () { var $bt = $('
'); var ims = this.value ? this.value.split('|') : [], $in = $(this).after($bt); $bt.find('[data-file]').attr({ + 'data-path': $in.data('path') || '', 'data-size': $in.data('size') || 0, 'data-type': $in.data('type') || 'gif,png,jpg,jpeg', 'data-max-width': $in.data('max-width') || 0, 'data-max-height': $in.data('max-height') || 0, 'data-cut-width': $in.data('cut-width') || 0, 'data-cut-height': $in.data('cut-height') || 0,