From 03ae0474cacebb3f74214f86a96961e349bb14e4 Mon Sep 17 00:00:00 2001 From: Treecat Date: Fri, 7 Apr 2023 10:21:45 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-14316=20fix:=20jQuery=20=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=8F=8A=20worker=20=E7=BC=BA=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/platform/web/jquery/fn.js | 6 ++++++ packages/fineui/webpack/attachments.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/fineui/src/core/platform/web/jquery/fn.js b/packages/fineui/src/core/platform/web/jquery/fn.js index 2403d95b6..2edb1545d 100644 --- a/packages/fineui/src/core/platform/web/jquery/fn.js +++ b/packages/fineui/src/core/platform/web/jquery/fn.js @@ -252,3 +252,9 @@ $.fn.extend({ }, }); + +$.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), (function(e, t) { + $.fn[t] = function(e, i) { + return arguments.length > 0 ? this.on(t, null, e, i) : this.trigger(t) + } +})) \ No newline at end of file diff --git a/packages/fineui/webpack/attachments.js b/packages/fineui/webpack/attachments.js index c46279897..4644a068e 100644 --- a/packages/fineui/webpack/attachments.js +++ b/packages/fineui/webpack/attachments.js @@ -168,7 +168,7 @@ const fineui = [].concat( bundleCss, basicAttachmentMap.js_bundle, basicAttachmentMap.ui, - // basicAttachmentMap.ts, + basicAttachmentMap.ts, ); const fineuiWithoutConflict = [].concat(