Browse Source

无jira fix:按需引入也导出Decorators

es6
Treecat 2 years ago
parent
commit
f315a39ad7
  1. 3
      packages/fineui/src/bundle.js
  2. 4
      packages/fineui/src/index.js

3
packages/fineui/src/bundle.js

@ -1,10 +1,9 @@
import * as fuiExport from "./index"; import * as fuiExport from "./index";
import * as injectFn from "@/core/5.inject"; import * as injectFn from "@/core/5.inject";
import { _global } from "@/core/0.foundation"; import { _global } from "@/core/0.foundation";
import * as Decorators from "@/core/decorator";
_global.BI = _global.BI || {}; _global.BI = _global.BI || {};
_global.BI.Decorators = { ...Decorators, Model: fuiExport.Fix.Model };
Object.assign(_global, { Object.assign(_global, {
Fix: fuiExport.Fix, Fix: fuiExport.Fix,

4
packages/fineui/src/index.js

@ -13,3 +13,7 @@ export * from "./router";
export * as Popper from "@popperjs/core"; export * as Popper from "@popperjs/core";
export const jQuery = jquery; export const jQuery = jquery;
export const $ = jquery; export const $ = jquery;
import * as D from "@/core/decorator";
import { Fix } from "./fix";
export const Decorators = { ...D, Model: Fix.Model };

Loading…
Cancel
Save