Browse Source
* commit 'ced49ba5569ce802829eb6111647127db2584127': 无jira fix:VirtualGroup KERNEL-15856 fix:把字体和CSS带上 BI-136783 fix: 修改灰化复选框选中的颜色 KERNEL-15856 fix:兼容定时调度 BI-134832 feat: router view支持removeTab 无JIRA任务 custom_tree支持hasNext 无JIRA任务 custom_tree + bi.loader,populate的时候会导致“无更多数据”消失 无JIRA任务 custom_tree + bi.loader,populate的时候会导致“无更多数据”消失 BI-128199 更新图标 BI-129568 fix: 分页间距优化-先回退6016考虑 BI-129568 fix: 白色背景相反色值调整&分页间距优化 无JIRA任务 custom_tree支持hasNext 无JRIA 打包失败 KERNEL-16294 fix: 导出适配1、导出widgetEngin构造的Element没有width方法,通过css设置 2、打包添加基本控件fineuiwithoutjquery = worker+基本控件 无jira任务 回退 无jira任务 多余空行 无jira任务 导出缺失 fix(BI-134501): 主线不找最外层bodyresearch/test
superman
1 year ago
23 changed files with 139 additions and 168 deletions
Binary file not shown.
Before Width: | Height: | Size: 981 KiB After Width: | Height: | Size: 985 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,96 +0,0 @@ |
|||||||
/** |
|
||||||
* 用于 jquery 在 worker 环境或者 V8 引擎的 polyfill |
|
||||||
*/ |
|
||||||
// import { _global } from "@/core/0.foundation";
|
|
||||||
|
|
||||||
const _global = globalThis; |
|
||||||
|
|
||||||
const document = {}; |
|
||||||
const fakeElement = Object.create(document); |
|
||||||
|
|
||||||
Object.assign(document, { |
|
||||||
parentNode: null, |
|
||||||
nodeType: 9, |
|
||||||
head: fakeElement, |
|
||||||
body: fakeElement, |
|
||||||
ownerDocument: document, |
|
||||||
documentElement: document, |
|
||||||
toString() { |
|
||||||
return "FakeDocument"; |
|
||||||
}, |
|
||||||
appendChild(child) { |
|
||||||
return child; |
|
||||||
}, |
|
||||||
implementation: { |
|
||||||
createHTMLDocument() { |
|
||||||
return { |
|
||||||
body: { |
|
||||||
childNodes: [], |
|
||||||
}, |
|
||||||
}; |
|
||||||
}, |
|
||||||
createDocumentFragment() { |
|
||||||
return this; |
|
||||||
}, |
|
||||||
}, |
|
||||||
getElementById() { |
|
||||||
return fakeElement; |
|
||||||
}, |
|
||||||
createElement() { |
|
||||||
return fakeElement; |
|
||||||
}, |
|
||||||
createDocumentFragment() { |
|
||||||
return this; |
|
||||||
}, |
|
||||||
cloneNode() { |
|
||||||
return this; |
|
||||||
}, |
|
||||||
getElementsByTagName() { |
|
||||||
return [fakeElement]; |
|
||||||
}, |
|
||||||
getElementsByClassName() { |
|
||||||
return [fakeElement]; |
|
||||||
}, |
|
||||||
setAttribute() { |
|
||||||
return null; |
|
||||||
}, |
|
||||||
getAttribute() { |
|
||||||
return null; |
|
||||||
}, |
|
||||||
removeChild() { |
|
||||||
return null; |
|
||||||
}, |
|
||||||
addEventListener() { |
|
||||||
return null; |
|
||||||
}, |
|
||||||
removeEventListener() { |
|
||||||
return null; |
|
||||||
}, |
|
||||||
}); |
|
||||||
|
|
||||||
Object.assign(fakeElement, { |
|
||||||
nodeType: 1, |
|
||||||
style: {}, |
|
||||||
ownerDocument: document, |
|
||||||
parentNod: fakeElement, |
|
||||||
firstChild: fakeElement, |
|
||||||
lastChild: fakeElement, |
|
||||||
toString() { |
|
||||||
return "FakeElement"; |
|
||||||
}, |
|
||||||
}); |
|
||||||
|
|
||||||
function polyfillProps(key, obj) { |
|
||||||
_global[key] = _global[key] || obj; |
|
||||||
if (typeof obj === "object") { |
|
||||||
try { |
|
||||||
Object.assign(_global[key], obj); |
|
||||||
} catch(err) { |
|
||||||
// _global[key] 可能只有 get 方法
|
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
_global.window = _global; |
|
||||||
polyfillProps("XMLHttpRequest", function () {}); |
|
||||||
polyfillProps("document", document); |
|
@ -0,0 +1,14 @@ |
|||||||
|
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); |
Loading…
Reference in new issue