From 11b8baa5c6c3502113d85b2238a75dd558397099 Mon Sep 17 00:00:00 2001 From: dailer Date: Tue, 18 Jul 2023 17:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20$=E5=92=8CJquery=E7=9A=84?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=97=AE=E9=A2=98=E5=85=BC=E5=AE=B9FR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/bundle.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/bundle.js b/packages/fineui/src/bundle.js index 7d9f259d1..a7e875954 100644 --- a/packages/fineui/src/bundle.js +++ b/packages/fineui/src/bundle.js @@ -5,12 +5,15 @@ import {_defineVarProperties} from "@/core/constant/writable.var"; _global.BI = _global.BI || {}; +// for fr, 已经有的就不对外暴露了. +// 要知道BI只有`BI.$`, 挂在全局对象上的只是为了兼容而已 +if (!_global.$ && !_global.jQuery) { + _global.jQuery = _global.$ = fuiExport.$; +} Object.assign(_global, { Fix: fuiExport.Fix, _: fuiExport._, - $: fuiExport.$, - jQuery: fuiExport.$, }); Object.assign(_global.BI, fuiExport, injectFn);