From 0655b8b0a12ef2ad51b5a46ac0bc1b796eb1ce7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=A8?= <945679940@qq.com> Date: Tue, 23 May 2023 16:50:04 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B7=BB=E5=8A=A0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=8F=8A=E6=97=B6=E9=97=B4=E6=AE=B5=E9=80=89=E6=8B=A9=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/static/admin.js b/public/static/admin.js index 5b0f9b7e5..b2aa30dba 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -279,6 +279,18 @@ $(function () { $(this.elem).val(value).trigger('change'); } }); + }), $dom.find('input[data-time-range]').map(function () { + this.setAttribute('autocomplete', 'off'), laydate.render({ + type: this.dataset.timeRange || 'time', range: true, elem: this, done: function (value) { + $(this.elem).val(value).trigger('change'); + } + }); + }), $dom.find('input[data-time-input]').map(function () { + this.setAttribute('autocomplete', 'off'), laydate.render({ + type: this.dataset.timeInput || 'time', range: false, elem: this, done: function (value) { + $(this.elem).val(value).trigger('change'); + } + }); }), $dom; }; /*! 在内容区显示视图 */