Compare commits

...

11 Commits
master ... es6

Author SHA1 Message Date
treecat-罗群 0ed3e845b1 Pull request #3664: KERNEL-15856 fix:兼容定时调度 1 year ago
Treecat 3995479d53 Revert "无jira: fix:material 代理问题" 1 year ago
Treecat f85867bb66 KERNEL-15856 fix:兼容定时调度 1 year ago
Jimmy.Chai-柴嘉明 f4f58e24e0 Pull request #3607: BI-128881 fix: 深色主题无更多数据这几个字没有显示出来 1 year ago
jimmychai 6c62a7c695 BI-128881 fix: 深色主题无更多数据这几个字没有显示出来 1 year ago
Jimmy.Chai-柴嘉明 c057e5cd2c Pull request #3593: 无jira任务 refactor:reduce类型 1 year ago
jimmychai c5dfb11f1f 无jira任务 refactor:reduce类型 1 year ago
Kobi-蒋科斌 0143741ef5 Pull request #3592: BI-128046 style: 弹窗按钮样式 1 year ago
Kobi 2b50b02d79 Merge remote-tracking branch 'origin/es6' into es6 1 year ago
Kobi 3b4ffbbe45 BI-128046 style: 弹窗按钮样式 1 year ago
Treecat ba1e19280c 无jira: fix:material 代理问题 2 years ago
  1. 2
      packages/fineui/src/base/foundation/message.js
  2. 4
      packages/fineui/src/core/5.inject.js
  3. 96
      packages/fineui/src/core/platform/web/jquery/jquery.polyfill.js
  4. 19
      packages/fineui/src/less/core/utils/list-item.less
  5. 4
      packages/fineui/typescript/core/base.ts
  6. 2
      packages/fineui/webpack/attachments.js

2
packages/fineui/src/base/foundation/message.js

@ -121,7 +121,7 @@ export const Msg = (() => {
el: {
type: "bi.button",
text: i18nText("BI-Basic_Cancel"),
level: "ignore",
light: true,
handler () {
close();
if (isFunction(callback)) {

4
packages/fineui/src/core/5.inject.js

@ -601,3 +601,7 @@ export function getResource(type, config) {
}
throw new Error("unknown type: [" + type + "] undefined");
}
export function getClass(xtype) {
return kv[xtype] || serviceInjection[xtype];
}

96
packages/fineui/src/core/platform/web/jquery/jquery.polyfill.js

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

19
packages/fineui/src/less/core/utils/list-item.less

@ -93,6 +93,25 @@
}
}
.bi-theme-dark {
.bi-list-item-simple {
&.disabled {
&, &:hover, &:active {
color: @color-bi-text-disabled-theme-dark !important;
& .bi-input {
color: @color-bi-text-disabled-theme-dark !important;
}
& .bi-textarea {
color: @color-bi-text-disabled-theme-dark !important;
}
& .bi-high-light {
color: @color-bi-text-disabled-theme-dark !important;
}
}
}
}
}
// hover的时候文字变黑
// active的时候文字高亮
.bi-list-item-effect {

4
packages/fineui/typescript/core/base.ts

@ -52,9 +52,9 @@ export declare function each<T>(collection: T, iteratee?: any, thisArg?: any): T
export declare function map<T, U>(collection: T[] | object | string | null | undefined, callback?: ((index: number, value: T) => U) | object | string, thisArg?: any): U[];
export declare function reduce<T, U>(collection: T[] | object | string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T;
export declare function reduce<T, U>(collection: T[] | object | string, callback?: ((currentValue: T, total: U extends T ? U : T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T;
export declare function reduceRight<T, U>(collection: T[] | object | string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T;
export declare function reduceRight<T, U>(collection: T[] | object | string, callback?: ((currentValue: T, total: U extends T ? U : T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T;
export declare function find<T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any): T | undefined;

2
packages/fineui/webpack/attachments.js

@ -1,6 +1,5 @@
const { sync, uniq } = require("./utils");
const jqueryPolyfill = "./src/core/platform/web/jquery/jquery.polyfill.js";
const configJS = "./src/core/platform/web/config.js";
const runtimePolyfill = ["core-js/stable"];
@ -34,7 +33,6 @@ const fineui = [].concat(
);
const fineuiForWorker = [].concat(
jqueryPolyfill,
basicAttachmentMap.js_bundle,
basicAttachmentMap.ui,
basicAttachmentMap.ts

Loading…
Cancel
Save