Browse Source

Pull request #3673: KERNEL-15856 fix:兼容定时调度

Merge in VISUAL/fineui from ~TREECAT/fineui:master to master

* commit 'a7ebd6ec1b2a8c53f3b85aa8f183cfc5fc154139':
  KERNEL-15856 fix:兼容定时调度
research/test
treecat-罗群 1 year ago
parent
commit
2eba857312
  1. 10
      packages/fineui/src/core/constant/writable.var.js
  2. 6
      packages/fineui/src/core/utils/index.js
  3. 14
      packages/fineui/src/without_Jquery_Polyfill.js
  4. 3
      packages/fineui/webpack/attachments.js

10
packages/fineui/src/core/constant/writable.var.js

@ -4,6 +4,7 @@
import { isNumber } from "../2.base"; import { isNumber } from "../2.base";
import { _global } from "../0.foundation"; import { _global } from "../0.foundation";
import { Cache } from "../structure"; import { Cache } from "../structure";
import { setDom, DOM } from "../utils";
const PropertyDescriptors = {}; const PropertyDescriptors = {};
@ -145,6 +146,15 @@ PropertyDescriptors["EVENT_BLUR"] = {
set: setEventBlur, set: setEventBlur,
}; };
PropertyDescriptors["DOM"] = {
enumerable: true,
configurable: true,
get: function() {
return DOM;
},
set: setDom,
};
export function _defineVarProperties(libName) { export function _defineVarProperties(libName) {
Object.defineProperties(libName, PropertyDescriptors); Object.defineProperties(libName, PropertyDescriptors);
} }

6
packages/fineui/src/core/utils/index.js

@ -6,7 +6,11 @@ import * as platformDom from "./dom";
import * as colorDom from "./color"; import * as colorDom from "./color";
export const DOM = { export let DOM = {
...platformDom, ...platformDom,
...colorDom, ...colorDom,
}; };
export function setDom(dom) {
DOM = dom;
}

14
packages/fineui/src/without_Jquery_Polyfill.js

@ -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);

3
packages/fineui/webpack/attachments.js

@ -19,8 +19,7 @@ const basicAttachmentMap = {
"src/less/component/**/*.less" "src/less/component/**/*.less"
]), ]),
js_bundle: sync(["src/bundle.js"]), js_bundle: sync(["src/bundle.js"]),
js_worker: sync(["src/worker.js"]), js_worker: sync(["src/worker.js"])
js_without_Jquery_polyfill: sync(["src/without_Jquery_Polyfill.js"]),
}; };
const bundleCss = uniq([].concat(basicAttachmentMap.less, basicAttachmentMap.ui, sync(["public/less/app.less", "public/less/**/*.less"]))); const bundleCss = uniq([].concat(basicAttachmentMap.less, basicAttachmentMap.ui, sync(["public/less/app.less", "public/less/**/*.less"])));

Loading…
Cancel
Save