Browse Source

Merge pull request #241711 in DEC/fineui from release/11.0 to feature/x

* commit '5035748fc14c65ccfb39f7364b0ea9b4a7f1816a':
  无JIRA $和Jquery的环境问题兼容FR
research/test
superman 1 year ago
parent
commit
99af96dc46
  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 || {}; _global.BI = _global.BI || {};
// for fr, 已经有的就不对外暴露了.
// 要知道BI只有`BI.$`, 挂在全局对象上的只是为了兼容而已
if (!_global.$ && !_global.jQuery) {
_global.jQuery = _global.$ = fuiExport.$;
}
Object.assign(_global, { Object.assign(_global, {
Fix: fuiExport.Fix, Fix: fuiExport.Fix,
_: fuiExport._, _: fuiExport._,
$: fuiExport.$,
jQuery: fuiExport.$,
}); });
Object.assign(_global.BI, fuiExport, injectFn); Object.assign(_global.BI, fuiExport, injectFn);

Loading…
Cancel
Save