Browse Source

Pull request #241708: 无JIRA $和Jquery的环境问题兼容FR

Merge in DEC/fineui from ~DAILER/fineui-decision:release/11.0 to release/11.0

* commit '11b8baa5c6c3502113d85b2238a75dd558397099':
  无JIRA $和Jquery的环境问题兼容FR
research/test
Dailer-刘荣歆 1 year ago
parent
commit
5035748fc1
  1. 7
      packages/fineui/src/bundle.js

7
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);

Loading…
Cancel
Save