diff --git a/packages/fineui/src/bundle.js b/packages/fineui/src/bundle.js index e3215520a..92ba6cfcf 100644 --- a/packages/fineui/src/bundle.js +++ b/packages/fineui/src/bundle.js @@ -1,10 +1,9 @@ import * as fuiExport from "./index"; import * as injectFn from "@/core/5.inject"; import { _global } from "@/core/0.foundation"; -import * as Decorators from "@/core/decorator"; _global.BI = _global.BI || {}; -_global.BI.Decorators = { ...Decorators, Model: fuiExport.Fix.Model }; + Object.assign(_global, { Fix: fuiExport.Fix, diff --git a/packages/fineui/src/index.js b/packages/fineui/src/index.js index 76dbf84ff..e84b98d9e 100644 --- a/packages/fineui/src/index.js +++ b/packages/fineui/src/index.js @@ -13,3 +13,7 @@ export * from "./router"; export * as Popper from "@popperjs/core"; export const jQuery = jquery; export const $ = jquery; + +import * as D from "@/core/decorator"; +import { Fix } from "./fix"; +export const Decorators = { ...D, Model: Fix.Model };