diff --git a/packages/fineui/src/core/constant/writable.var.js b/packages/fineui/src/core/constant/writable.var.js index 45e048502..4d4f90484 100644 --- a/packages/fineui/src/core/constant/writable.var.js +++ b/packages/fineui/src/core/constant/writable.var.js @@ -4,6 +4,7 @@ import { isNumber } from "../2.base"; import { _global } from "../0.foundation"; import { Cache } from "../structure"; +import { setDom, DOM } from "../utils"; const PropertyDescriptors = {}; @@ -145,6 +146,15 @@ PropertyDescriptors["EVENT_BLUR"] = { set: setEventBlur, }; +PropertyDescriptors["DOM"] = { + enumerable: true, + configurable: true, + get: function() { + return DOM; + }, + set: setDom, +}; + export function _defineVarProperties(libName) { Object.defineProperties(libName, PropertyDescriptors); } diff --git a/packages/fineui/src/core/utils/index.js b/packages/fineui/src/core/utils/index.js index d01e65bbc..0c7c22f22 100644 --- a/packages/fineui/src/core/utils/index.js +++ b/packages/fineui/src/core/utils/index.js @@ -6,7 +6,11 @@ import * as platformDom from "./dom"; import * as colorDom from "./color"; -export const DOM = { +export let DOM = { ...platformDom, ...colorDom, }; + +export function setDom(dom) { + DOM = dom; +} diff --git a/packages/fineui/src/without_Jquery_Polyfill.js b/packages/fineui/src/without_Jquery_Polyfill.js deleted file mode 100644 index 369bc3a7f..000000000 --- a/packages/fineui/src/without_Jquery_Polyfill.js +++ /dev/null @@ -1,14 +0,0 @@ -export * from './worker.js'; - -// "!src/base/single/input/file.js", -// "!src/case/ztree/**/*.js", -import * as _case from './case'; -import * as _widget from './widget'; -import { _global } from "@/core/0.foundation"; - -const fuiExport = { - ..._case, - ..._widget -}; - -Object.assign(_global.BI, fuiExport); diff --git a/packages/fineui/webpack/attachments.js b/packages/fineui/webpack/attachments.js index afe2b8a04..882ada3b9 100644 --- a/packages/fineui/webpack/attachments.js +++ b/packages/fineui/webpack/attachments.js @@ -19,8 +19,7 @@ const basicAttachmentMap = { "src/less/component/**/*.less" ]), js_bundle: sync(["src/bundle.js"]), - js_worker: sync(["src/worker.js"]), - js_without_Jquery_polyfill: sync(["src/without_Jquery_Polyfill.js"]), + js_worker: sync(["src/worker.js"]) }; const bundleCss = uniq([].concat(basicAttachmentMap.less, basicAttachmentMap.ui, sync(["public/less/app.less", "public/less/**/*.less"])));