From f315a39ad7c9f3d9def13712e5f77dde311c6bfb Mon Sep 17 00:00:00 2001 From: Treecat Date: Thu, 11 May 2023 19:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=20fix:=E6=8C=89=E9=9C=80=E5=BC=95?= =?UTF-8?q?=E5=85=A5=E4=B9=9F=E5=AF=BC=E5=87=BADecorators?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/bundle.js | 3 +-- packages/fineui/src/index.js | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 };