Compare commits

...

107 Commits

Author SHA1 Message Date
Dailer-刘荣歆 cdec6f784f Pull request #3750: 无JIRA 同步一下代码 5 months ago
Dailer-刘荣歆 039ec622c4 Pull request #9: Feature/x 5 months ago
翠屏山最速下山传说 d5ee4e67f9 Merge branch 'master' of https://code.fineres.com/scm/~dailer/fineui into feature/x 5 months ago
Oliver.Chen-陈润桐 04a58a4a0b Pull request #3749: 无jira任务 fix: 更新图标 5 months ago
Oliver.Chen 26b2e1332f 无jira任务 fix: 更新图标 5 months ago
superman 77477f1bfd Merge pull request #282881 in DEC/fineui from release/11.0 to feature/x 5 months ago
superman cbdc63081f Merge pull request #282880 in DEC/fineui from final/11.0 to release/11.0 5 months ago
Zoey.Chen-陈泽语 41609ada7e Pull request #282878: BI-150695 fix: 兼容当前元素无parentNode的情况 5 months ago
chenzeyu 37fbf06103 BI-150695 fix: 兼容当前元素无parentNode的情况 5 months ago
superman e100e4115e Merge pull request #282507 in DEC/fineui from bugfix/11.0 to feature/x 5 months ago
superman ebbd7e6056 Merge pull request #282506 in DEC/fineui from release/11.0 to bugfix/11.0 5 months ago
superman 3063da4874 Merge pull request #282486 in DEC/fineui from release/11.0 to feature/x 5 months ago
superman 736980cb6e Merge pull request #282485 in DEC/fineui from final/11.0 to release/11.0 5 months ago
Zoey.Chen-陈泽语 bcedb54782 Pull request #282357: BI-150395 fix: safari下拉搜索框定位不对 5 months ago
chenzeyu bbd0315030 BI-150395 fix: safari下拉搜索框定位不对 5 months ago
Jimmy.Chai-柴嘉明 2109dee89d Pull request #281324: BI-149124 refactor: 粘贴限制变成参数 6 months ago
Jimmy.Chai c8d04fabdb BI-149124 refactor: 粘贴限制变成参数 6 months ago
superman d421c97306 Merge pull request #281311 in DEC/fineui from bugfix/11.0 to feature/x 6 months ago
superman b6ad497984 Merge pull request #281310 in DEC/fineui from release/11.0 to bugfix/11.0 6 months ago
superman a6b9042a49 Merge pull request #281154 in DEC/fineui from release/11.0 to feature/x 6 months ago
superman 6a17673c96 Merge pull request #281151 in DEC/fineui from bugfix/11.0 to release/11.0 6 months ago
superman 45172096df Merge pull request #281150 in DEC/fineui from feature/x to bugfix/11.0 6 months ago
superman 1c7689361d Merge pull request #280328 in DEC/fineui from bugfix/11.0 to feature/x 6 months ago
superman 572d216e64 Merge pull request #280327 in DEC/fineui from release/11.0 to bugfix/11.0 6 months ago
superman aaf988b6fe Merge pull request #280315 in DEC/fineui from bugfix/11.0 to feature/x 6 months ago
Xavier.Meng-孟宇翔 aed35bbce6 Pull request #280308: BI-147036 feat: 更新图标 6 months ago
Xavier.Meng f9b75be7ea BI-147036 feat: 更新图标 6 months ago
Jimmy.Chai-柴嘉明 eacdf59bed Pull request #279928: BI-143733 fix: 深色预览样式调整 6 months ago
superman 91c81250fc Merge pull request #280161 in DEC/fineui from release/11.0 to feature/x 6 months ago
fanglei-方磊 bb260ec29a Pull request #280112: REPORT-122294 lodash 低版本安全漏洞 6 months ago
方磊 e4aafdc056 REPORT-122294 lodash 低版本安全漏洞 6 months ago
superman 9189327b54 Merge pull request #280099 in DEC/fineui from release/11.0 to bugfix/11.0 6 months ago
Jimmy.Chai 02361b2675 BI-143733 fix: 深色预览样式调整 6 months ago
superman 1909ba3ef7 Merge pull request #279905 in DEC/fineui from master to feature/x 6 months ago
superman 8a57bcb479 Merge pull request #279904 in DEC/fineui from release/11.0 to feature/x 6 months ago
superman 7bcfbc79d2 Merge pull request #279903 in DEC/fineui from final/11.0 to release/11.0 6 months ago
superman 304126a7f1 Merge pull request #279902 in DEC/fineui from persist/11.0 to final/11.0 6 months ago
Zoey.Chen-陈泽语 fba8461b98 Pull request #279891: feature/x 合并 Final/11.0(6.1.1合final) 6 months ago
chenzeyu 8f41724169 Merge branch 'feature/x' into final/11.0 6 months ago
Kevin.King-王凯壮 9ab289d8c3 REPORT-121158 fix:控制台报错 6 months ago
chenzeyu 117d7fb659 BI-148724 fix: 树控件查看已选项连发两次请求 6 months ago
Dailer-刘荣歆 a26102950d Uploaded files 6 months ago
superman 4e63a7ef55 Merge pull request #279890 in DEC/fineui from final/11.0 to persist/11.0 6 months ago
fanglei-方磊 b74eba39f0 Pull request #3748: REPORT-122294 lodash 低版本安全漏洞 6 months ago
方磊 e1593bc0fc REPORT-122294 lodash 低版本安全漏洞 6 months ago
superman a33d9862b0 Merge pull request #279705 in DEC/fineui from bugfix/11.0 to feature/x 6 months ago
superman 2d7d80e719 Merge pull request #279704 in DEC/fineui from release/11.0 to bugfix/11.0 6 months ago
superman 535f7128fe Merge pull request #279098 in DEC/fineui from release/11.0 to feature/x 6 months ago
Kevin.King-王凯壮 fbe18a5138 Pull request #279091: REPORT-121158 fix:控制台报错 6 months ago
Kevin.King-王凯壮 c22c5d43dd REPORT-121158 fix:控制台报错 6 months ago
superman 7b407d4aa1 Merge pull request #278329 in DEC/fineui from release/11.0 to bugfix/11.0 6 months ago
superman 1b4e6e43b1 Merge pull request #278313 in DEC/fineui from release/11.0 to feature/x 6 months ago
superman 70e2f876da Merge pull request #278312 in DEC/fineui from final/11.0 to release/11.0 6 months ago
superman d3ab2af3fd Merge pull request #278310 in DEC/fineui from release/11.0 to final/11.0 6 months ago
Zoey.Chen-陈泽语 067435dd1e Pull request #277981: BI-148724 fix: 树控件查看已选项连发两次请求 6 months ago
chenzeyu f00e4c5b6c BI-148724 fix: 树控件查看已选项连发两次请求 6 months ago
Dailer-刘荣歆 5bff3e170e Pull request #276950: Uploaded font files 7 months ago
Dailer-刘荣歆 59a4e56d5f Uploaded files 7 months ago
superman 9bb7c12459 Merge pull request #276878 in DEC/fineui from bugfix/11.0 to feature/x 7 months ago
superman 05f6c41996 Merge pull request #276877 in DEC/fineui from release/11.0 to bugfix/11.0 7 months ago
superman 7fc5c63af9 Merge pull request #276101 in DEC/fineui from release/11.0 to feature/x 7 months ago
superman fba1af3f9b Merge pull request #276094 in DEC/fineui from bugfix/11.0 to release/11.0 7 months ago
superman 12899d2e88 Merge pull request #276093 in DEC/fineui from feature/x to bugfix/11.0 7 months ago
superman 3fe3b3d8e9 Merge pull request #275999 in DEC/fineui from release/11.0 to feature/x 7 months ago
superman 3b060f11a2 Merge pull request #275998 in DEC/fineui from final/11.0 to release/11.0 7 months ago
superman 3f55e7a72b Merge pull request #275997 in DEC/fineui from persist/11.0 to final/11.0 7 months ago
superman a01610e2ab Merge pull request #275996 in DEC/fineui from final/11.0 to persist/11.0 7 months ago
Zoey.Chen-陈泽语 e8f7a6c60b Pull request #275547: BI-148103 fix: 6.0.18过滤组件下拉框异常变小 7 months ago
chenzeyu 74ccf2f8cc BI-148103 fix: 6.0.18过滤组件下拉框异常变小 7 months ago
Zoey.Chen-陈泽语 f752b70990 Pull request #275347: BI-138636 fix: 文本、动态时间支持按钮组 7 months ago
chenzeyu 7beaeccebb BI-138636 fix: 文本、动态时间支持按钮组 7 months ago
superman 8dbbbd5e2c Merge pull request #275123 in DEC/fineui from master to feature/x 7 months ago
superman 2f199552b9 Merge pull request #275057 in DEC/fineui from master to feature/x 7 months ago
superman 212e8315f4 Merge pull request #274919 in DEC/fineui from release/11.0 to feature/x 7 months ago
superman b87665d7be Merge pull request #274918 in DEC/fineui from final/11.0 to release/11.0 7 months ago
Zoey.Chen-陈泽语 6378314e1b Pull request #274906: 无jira任务:feature/x 合并 Final/11.0 7 months ago
Zoey.Chen-陈泽语 877e71adfc Pull request #274494: BI-138679 feat: 更新图标 7 months ago
chenzeyu 4a69f2f440 BI-138679 feat: 更新图标 7 months ago
Zoey.Chen-陈泽语 e712b52428 Pull request #273912: BI-147341 fix:contentFormat未考虑时区问题 7 months ago
chenzeyu f0e91077bb BI-147341 fix:contentFormat未考虑时区问题 7 months ago
superman 00a60c6a63 Merge pull request #273681 in DEC/fineui from master to feature/x 7 months ago
superman 083ad18c21 Merge pull request #273142 in DEC/fineui from release/11.0 to feature/x 8 months ago
Kevin.King-王凯壮 3e44318c7e Pull request #273121: FDL-10490 fix:demo平台权限管理api列表显示空白 8 months ago
Kevin.King-王凯壮 8d4b0a67cc FDL-10490 fix:demo平台权限管理api列表显示空白 8 months ago
superman 36083aca64 Merge pull request #273113 in DEC/fineui from release/11.0 to feature/x 8 months ago
superman ca3659e5e3 Merge pull request #273112 in DEC/fineui from final/11.0 to release/11.0 8 months ago
superman ecbc12af1b Merge pull request #273111 in DEC/fineui from persist/11.0 to final/11.0 8 months ago
superman 6c0c17ac8b Merge pull request #273110 in DEC/fineui from final/11.0 to persist/11.0 8 months ago
superman de3dd7a48a Merge pull request #272557 in DEC/fineui from master to feature/x 8 months ago
superman d19aa45390 Merge pull request #271682 in DEC/fineui from bugfix/11.0 to feature/x 8 months ago
superman d03dff4c64 Merge pull request #271681 in DEC/fineui from release/11.0 to bugfix/11.0 8 months ago
superman 9a244ce9cb Merge pull request #271521 in DEC/fineui from release/11.0 to feature/x 8 months ago
superman 201d665d25 Merge pull request #271520 in DEC/fineui from final/11.0 to release/11.0 8 months ago
superman 5a7d85e730 Merge pull request #271518 in DEC/fineui from release/11.0 to final/11.0 8 months ago
superman 4e2d22a017 Merge pull request #271513 in DEC/fineui from master to feature/x 8 months ago
superman 930ebedede Merge pull request #271149 in DEC/fineui from master to feature/x 8 months ago
superman 7cb4f23775 Merge pull request #270577 in DEC/fineui from bugfix/11.0 to feature/x 8 months ago
superman e8fa741855 Merge pull request #270576 in DEC/fineui from release/11.0 to bugfix/11.0 8 months ago
superman 198d1fcb6f Merge pull request #270372 in DEC/fineui from release/11.0 to feature/x 8 months ago
Zoey.Chen-陈泽语 7c95e8c1fb Pull request #270179: BI-146095 fix:文本下拉加载最后一次缓存时cachegroup新增了 8 months ago
superman 9288b7bd0d Merge pull request #270178 in DEC/fineui from master to feature/x 8 months ago
chenzeyu fdb47604f7 BI-146095 fix:文本下拉加载最后一次缓存时cachegroup新增了 8 months ago
superman af7e395d4a Merge pull request #270010 in DEC/fineui from bugfix/11.0 to feature/x 8 months ago
superman 42deeb4a67 Merge pull request #270009 in DEC/fineui from release/11.0 to bugfix/11.0 8 months ago
superman 0537e0c4e9 Merge pull request #269989 in DEC/fineui from release/11.0 to feature/x 8 months ago
Dailer-刘荣歆 f4a5e2e574 Pull request #269825: KERNEL-17875 fix: fineui Dep不能回收问题 8 months ago
Dailer-刘荣歆 c87867cf2e Pull request #13: KERNEL-17875 fix: fineui Dep不能回收问题 8 months ago
  1. 18
      packages/fineui/bi.lessconfig.json
  2. BIN
      packages/fineui/dist/font/iconfont.eot
  3. 124
      packages/fineui/dist/font/iconfont.svg
  4. BIN
      packages/fineui/dist/font/iconfont.ttf
  5. BIN
      packages/fineui/dist/font/iconfont.woff
  6. BIN
      packages/fineui/dist/font/iconfont.woff2
  7. 5
      packages/fineui/src/base/tree/customtree.js
  8. 8
      packages/fineui/src/core/1.lodash.js
  9. 2
      packages/fineui/src/core/5.inject.js
  10. 9
      packages/fineui/src/core/constant/writable.var.js
  11. 2
      packages/fineui/src/core/controller/controller.layer.js
  12. 7
      packages/fineui/src/core/func/alias.js
  13. 9
      packages/fineui/src/core/utils/dom.js
  14. 8
      packages/fineui/src/less/base/colorchooser/colorpicker/button.colorshow.less
  15. 12
      packages/fineui/src/less/base/single/button/button.less
  16. 2
      packages/fineui/src/less/base/single/button/switch.less
  17. 6
      packages/fineui/src/less/core/utils/common.less
  18. 6
      packages/fineui/src/less/core/utils/list-item.less
  19. 3
      packages/fineui/src/less/lib/colors.less
  20. 4
      packages/fineui/src/less/lib/theme.less
  21. 6
      packages/fineui/src/widget/multiselect/loader.js
  22. 5
      packages/fineui/src/widget/multiselect/multiselect.insert.combo.js
  23. 7
      packages/fineui/src/widget/multiselect/multiselect.insert.combo.nobar.js
  24. 7
      packages/fineui/src/widget/multiselect/trigger/searcher.multiselect.insert.js
  25. 2
      packages/fineui/src/widget/multiselect/trigger/switcher.checkselected.js
  26. 9
      packages/fineui/src/widget/multiselectlist/multiselectlist.insert.js
  27. 9
      packages/fineui/src/widget/multiselectlist/multiselectlist.insert.nobar.js
  28. 11
      packages/fineui/src/widget/multitree/multi.tree.combo.js
  29. 2
      packages/fineui/typescript/core/var.ts
  30. 1
      scripts/lib/fui.export.txt

18
packages/fineui/bi.lessconfig.json

@ -23,8 +23,8 @@
"@color-bi-border-disabled-radio": "rgba(9, 30, 64, 0.19)",
"@color-bi-background-active-radio-content": "#2C60DB",
"@color-bi-border-checkbox-theme-dark": "rgba(255, 255, 255, 0.37)",
"@color-bi-border-hover-active-radio-theme-dark": "#3869DC",
"@color-bi-background-active-radio-content-theme-dark": "#3869DC",
"@color-bi-border-hover-active-radio-theme-dark": "#497FFD",
"@color-bi-background-active-radio-content-theme-dark": "#497FFD",
"@color-bi-background-disabled-active-radio-content": "#FFFFFF",
"@color-bi-background-disabled-active-radio-content-theme-dark": "#606479",
"@color-bi-background-disabled-active-checkbox-content": "#FFFFFF",
@ -48,5 +48,17 @@
"@font-solid-bottom": "e905",
"@font-solid-right": "e906",
"@font-dot": "e762",
"@font-down-triangle": "e70b"
"@font-down-triangle": "e70b",
"@color-bi-background-theme-dark": "#1B1F31",
"@border-color-light-line-theme-dark": "#30364B",
"@color-bi-background-header-background": "#F8F9FC",
"@color-bi-background-header-background-theme-dark": "#1B1F31",
"@color-bi-background-common-light-button": "#E5EFFF",
"@color-bi-background-common-light-button-theme-dark": "#0F2A62",
"@color-bi-text-highlight-theme-dark": "#497FFD",
"@color-bi-border-active-chooser-show-button-theme-dark": "#497FFD",
"@color-bi-background-button-theme-dark": "#497FFD",
"@color-bi-background-active-switch-theme-dark": "#497FFD",
"@color-bi-text-common-light-button-theme-dark": "#497FFD",
"@color-bi-text-common-light-button": "#2c60db"
}

BIN
packages/fineui/dist/font/iconfont.eot vendored

Binary file not shown.

124
packages/fineui/dist/font/iconfont.svg vendored

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
packages/fineui/dist/font/iconfont.ttf vendored

Binary file not shown.

BIN
packages/fineui/dist/font/iconfont.woff vendored

Binary file not shown.

BIN
packages/fineui/dist/font/iconfont.woff2 vendored

Binary file not shown.

5
packages/fineui/src/base/tree/customtree.js

@ -16,7 +16,8 @@ import {
isNull,
createWidget,
Controller,
Events
Events,
omit,
} from "@/core";
/**
@ -104,7 +105,7 @@ export class CustomTree extends Widget {
return itemsCreator.apply(this, args);
};
isNull(item.popup.el) && (item.popup.el = deepClone(this.options.el));
isNull(item.popup.el) && (item.popup.el = deepClone(omit(this.options.el, "node")));
item.popup.el.node = item.el;
items.push(item);
} else {

8
packages/fineui/src/core/1.lodash.js

@ -14,7 +14,7 @@
var undefined;
/** Used as the semantic version number. */
var VERSION = '4.17.5';
var VERSION = '4.17.21';
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
@ -899,7 +899,7 @@
}
/**
* Gets the value at `key`, unless `key` is "__proto__".
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
*
* @private
* @param {Object} object The object to query.
@ -907,6 +907,10 @@
* @returns {*} Returns the property value.
*/
function safeGet(object, key) {
if (key === 'constructor' && typeof object[key] === 'function') {
return;
}
return key == '__proto__'
? undefined
: object[key];

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

@ -427,7 +427,7 @@ const providers = {},
export const Providers = {
getProvider: (type, config) => {
if (!providerInjection[type]) {
_global.console && console.error(`provider: [${type}] undefined`);
_global.console && console.warn(`provider: [${type}] undefined`);
}
runConfigFunction(type);
if (!providers[type]) {

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

@ -139,3 +139,12 @@ addDescriptor("nextTick", {
get: () => nextTick,
set: setNextTick,
});
export let PasteLimit = 2000;
export const setPasteLimit = v => {
PasteLimit = v;
};
addDescriptor("PasteLimit", {
get: () => PasteLimit,
set: setPasteLimit,
});

2
packages/fineui/src/core/controller/controller.layer.js

@ -108,7 +108,7 @@ export class LayerController extends Controller {
height: offset.height || (w.outerHeight() - (offset.top || 0) - (offset.bottom || 0)) || "",
};
const { top, left, scaleY, scaleX } = getPositionRelativeContainingBlockRect(layout.element[0]);
const { top, left, scaleY, scaleX } = getPositionRelativeContainingBlockRect(layout.element[0].parentNode || layout.element[0]);
css.top = (css.top - top) / scaleY;
css.left = (css.left - left) / scaleX;

7
packages/fineui/src/core/func/alias.js

@ -9,7 +9,8 @@ import {
leftPad,
parseDateTime,
values,
isArray
isArray,
getDate
} from "../2.base";
import { replaceAll } from "./string";
import { getFullDayName, getMonthName, getTimezone } from "./date";
@ -680,10 +681,10 @@ export const contentFormat = function(cv, fmt) {
if (!(cv instanceof Date)) {
if (typeof cv === "number") {
// 毫秒数类型
cv = new Date(cv);
cv = getDate(cv);
} else {
// 字符串类型转化为date类型
cv = new Date(Date.parse((`${cv}`).replace(/-|\./g, "/")));
cv = getDate(Date.parse((`${cv}`).replace(/-|\./g, "/")));
}
}
if (!isInvalidDate(cv) && !isNull(cv)) {

9
packages/fineui/src/core/utils/dom.js

@ -744,10 +744,11 @@ export function getComboPosition(combo, popup, extraWidth, extraHeight, needAdap
if (needAdaptHeight === true && popup.resetHeight) {
const comboRect = combo.element[0].getBoundingClientRect();
const relativeOffset = positionRelativeElement ? positionRelativeElement.getBoundingClientRect().top : 0;
if (position.top < comboRect.top) {
popup.resetHeight(Math.min(viewportBounds.height - position.top - relativeOffset, comboRect.top, maxHeight));
} else if (position.top >= comboRect.bottom) {
popup.resetHeight(Math.min(viewportBounds.height - position.top - relativeOffset, viewportBounds.height - comboRect.bottom, maxHeight));
const positionTop = position.top + relativeOffset;
if (positionTop < comboRect.top) {
popup.resetHeight(Math.min(viewportBounds.height - positionTop, comboRect.top, maxHeight));
} else if (positionTop >= comboRect.bottom) {
popup.resetHeight(Math.min(viewportBounds.height - positionTop, viewportBounds.height - comboRect.bottom, maxHeight));
}
}

8
packages/fineui/src/less/base/colorchooser/colorpicker/button.colorshow.less

@ -5,3 +5,11 @@
border-color: @color-bi-border-active-chooser-show-button;
}
}
.bi-theme-dark {
.bi-color-chooser-show-button {
&.active, &:active {
border-color: @color-bi-border-active-chooser-show-button-theme-dark;
}
}
}

12
packages/fineui/src/less/base/single/button/button.less

@ -578,6 +578,8 @@ body .bi-button, #body .bi-button {
.bi-theme-dark, #body .bi-theme-dark {
.bi-button {
background-color: @color-bi-background-button-theme-dark;
&.button-ignore {
background-color: @color-bi-background-ignore-button-theme-dark;
@ -643,5 +645,15 @@ body .bi-button, #body .bi-button {
}
}
}
&.button-common {
&.light {
background-color: @color-bi-background-common-light-button-theme-dark;
&, & .b-font:before {
color: @color-bi-text-common-light-button-theme-dark;
}
}
}
}
}

2
packages/fineui/src/less/base/single/button/switch.less

@ -25,7 +25,7 @@
.bi-switch {
background-color: @color-bi-background-switch-theme-dark;
&.active {
background-color: @color-bi-background-active-switch;
background-color: @color-bi-background-active-switch-theme-dark;
}
}
}

6
packages/fineui/src/less/core/utils/common.less

@ -104,6 +104,10 @@
.bi-theme-dark {
.bi-focus-shadow {
&:focus, &:hover {
border-color: @color-bi-border-highlight-theme-dark;
}
&.disabled {
&:hover {
border-color: @border-color-line-theme-dark;
@ -142,7 +146,7 @@
.bi-theme-dark {
.bi-background {
background-color: @color-bi-background-normal-theme-dark;
background-color: @color-bi-background-theme-dark;
color: @color-bi-text-background-theme-dark;
& .bi-input {

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

@ -161,12 +161,12 @@
}
}
&.active, &:active {
color: @color-bi-text-highlight;
color: @color-bi-text-highlight-theme-dark;
& .bi-input {
color: @color-bi-text-highlight;
color: @color-bi-text-highlight-theme-dark;
}
& .bi-textarea {
color: @color-bi-text-highlight;
color: @color-bi-text-highlight-theme-dark;
}
}
&.disabled {

3
packages/fineui/src/less/lib/colors.less

@ -38,6 +38,7 @@
//基本提亮颜色
@color-bi-text-highlight: @font-color-highlight;
@color-bi-text-highlight-theme-dark: @font-color-highlight;
//标红色
@color-bi-text-redmark: @font-color-warning;
@ -50,6 +51,7 @@
@color-bi-background-normal: @background-color-normal;
//深色主题普通背景
@color-bi-background-normal-theme-dark: @background-color-normal-theme-dark;
@color-bi-background-theme-dark: @background-color-normal-theme-dark;
//默认背景
@color-bi-background-default: @background-color-default;
//深色主题默认背景
@ -132,5 +134,6 @@
@color-bi-border-warning: @border-color-warning;
//边框提亮
@color-bi-border-highlight: @border-color-highlight;
@color-bi-border-highlight-theme-dark: @border-color-highlight;
@color-bi-alert-warning: @color-bi-orange;

4
packages/fineui/src/less/lib/theme.less

@ -62,6 +62,7 @@
// 按钮
@color-bi-border-button: @color-bi-border-highlight;
@color-bi-background-button: @color-bi-background-highlight;
@color-bi-background-button-theme-dark: @color-bi-background-highlight;
@color-bi-text-common-button: @color-bi-text;
@color-bi-text-common-clear-button: @color-bi-text-highlight;
@color-bi-text-common-plain-button: @color-bi-text-highlight;
@ -75,7 +76,9 @@
@color-bi-background-hover-common-ghost-button-theme-dark: @color-bi-background-default;
@color-bi-text-common-light-button: @color-bi-text-highlight;
@color-bi-text-common-light-button-theme-dark: @color-bi-text-highlight;
@color-bi-background-common-light-button: @color-bi-background-light-blue;
@color-bi-background-common-light-button-theme-dark: @color-bi-background-light-blue;
@color-bi-background-hover-common-light-button: @color-bi-background-light-blue;
@color-bi-background-active-common-light-button: @color-bi-background-light-blue;
@color-bi-background-hover-plain-button: @color-black-5;
@ -202,6 +205,7 @@
@color-bi-border-picker-button-mask: @color-bi-border-black;
@color-bi-border-picker-button-mask-theme-dark: @color-bi-border-default;
@color-bi-border-active-chooser-show-button: @color-bi-border-highlight;
@color-bi-border-active-chooser-show-button-theme-dark: @color-bi-border-highlight;
@color-bi-background-disabled-chooser-popup-mask: @color-bi-background-default;
// combo
@color-bi-border-hover-combo: @color-bi-border-highlight;

6
packages/fineui/src/widget/multiselect/loader.js

@ -74,7 +74,7 @@ export class MultiSelectInnerLoader extends Widget {
this.next.setLoaded();
const items = this._composeItems(this.cachItems.slice(0, 100));
this.cachItems = this.cachItems.slice(100);
this.addItems(items);
this.addItems(items, true);
return;
}
@ -183,7 +183,7 @@ export class MultiSelectInnerLoader extends Widget {
]);
}
addItems(items) {
addItems(items, isFromCache = false) {
this.count += items.length;
if (isObject(this.next)) {
if (this.hasNext()) {
@ -194,7 +194,7 @@ export class MultiSelectInnerLoader extends Widget {
}
}
// cacheGroup渲染的是全量的,如果这次加载更多add的items是从cacheItems里面拿的,那不用再add了
if (this.cachItems.length > 0) {
if (isFromCache) {
this.button_group.addItems(...arguments);
return;
}

5
packages/fineui/src/widget/multiselect/multiselect.insert.combo.js

@ -33,6 +33,7 @@ import {
SIZE_CONSANTS,
BlankSplitChar,
size,
PasteLimit,
} from "@/core";
import { Single, Combo, Msg } from "@/base";
import { MultiSelectBar, TriggerIconButton } from "@/case";
@ -146,8 +147,8 @@ export class MultiSelectInsertCombo extends Single {
}
self._dataChange = true;
});
this.getSearcher().getKeywordsLength() > 2000 &&
Msg.alert(i18nText("BI-Basic_Prompt"), i18nText("BI-Basic_Too_Much_Value_Get_Two_Thousand"));
this.getSearcher().getKeywordsLength() > PasteLimit &&
Msg.alert(i18nText("BI-Basic_Prompt"), i18nText("BI-Basic_Paste_Too_Much_Value", PasteLimit));
}
self.fireEvent(MultiSelectInsertCombo.EVENT_SEARCHING);
});

7
packages/fineui/src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -29,7 +29,8 @@ import {
pushDistinct,
Selection,
BlankSplitChar,
SIZE_CONSANTS
SIZE_CONSANTS,
PasteLimit,
} from "@/core";
import { Single, Combo, Msg } from "@/base";
import { MultiSelectInsertTrigger } from "./multiselect.insert.trigger";
@ -134,8 +135,8 @@ export class MultiSelectInsertNoBarCombo extends Single {
}
self._dataChange = true;
});
this.getSearcher().getKeywordsLength() > 2000 &&
Msg.alert(i18nText("BI-Basic_Prompt"), i18nText("BI-Basic_Too_Much_Value_Get_Two_Thousand"));
this.getSearcher().getKeywordsLength() > PasteLimit &&
Msg.alert(i18nText("BI-Basic_Prompt"), i18nText("BI-Basic_Paste_Too_Much_Value", PasteLimit));
}
});

7
packages/fineui/src/widget/multiselect/trigger/searcher.multiselect.insert.js

@ -10,7 +10,8 @@ import {
size,
each,
BlankSplitChar,
Selection
Selection,
PasteLimit,
} from "@/core";
import { MultiSelectEditor } from "./editor.multiselect";
import { Searcher } from "@/base";
@ -123,7 +124,7 @@ export class MultiSelectInsertSearcher extends Widget {
const keywords = this.getKeywords();
self.fireEvent(
MultiSelectInsertSearcher.EVENT_SEARCHING,
keywords.length > 2000 ? keywords.slice(0, 2000).concat([BlankSplitChar]) : keywords.slice(0, 2000)
keywords.length > PasteLimit ? keywords.slice(0, PasteLimit).concat([BlankSplitChar]) : keywords.slice(0, PasteLimit)
);
});
if (isNotNull(o.value)) {
@ -150,7 +151,7 @@ export class MultiSelectInsertSearcher extends Widget {
}
getKeyword() {
let keywords = this.editor.getKeywords().slice(0, 2000);
let keywords = this.editor.getKeywords().slice(0, PasteLimit);
if (keywords[keywords.length - 1] === BlankSplitChar) {
keywords = keywords.slice(0, keywords.length - 1);
}

2
packages/fineui/src/widget/multiselect/trigger/switcher.checkselected.js

@ -10,6 +10,7 @@ export class MultiSelectCheckSelectedSwitcher extends Widget {
static EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
static EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
static EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
static EVENT_TRIGGER_COMBO = "EVENT_TRIGGER_COMBO";
_defaultConfig() {
return extend(super._defaultConfig(...arguments), {
@ -48,6 +49,7 @@ export class MultiSelectCheckSelectedSwitcher extends Widget {
itemsCreator: o.itemsCreator,
onClickContinueSelect() {
self.switcher.hideView();
self.fireEvent(MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_COMBO);
},
ref(_ref) {
self.checkPane = _ref;

9
packages/fineui/src/widget/multiselectlist/multiselectlist.insert.js

@ -28,7 +28,8 @@ import {
isNull,
VerticalFillLayout,
SIZE_CONSANTS,
BlankSplitChar
BlankSplitChar,
PasteLimit,
} from "@/core";
import { Single, Searcher, Msg } from "@/base";
import { MultiSelectBar } from "@/case";
@ -200,10 +201,10 @@ export class MultiSelectInsertList extends Single {
}
self.fireEvent(MultiSelectInsertList.EVENT_CHANGE);
});
self._getKeywordsLength() > 2000 &&
self._getKeywordsLength() > PasteLimit &&
Msg.alert(
i18nText("BI-Basic_Prompt"),
i18nText("BI-Basic_Too_Much_Value_Get_Two_Thousand")
i18nText("BI-Basic_Paste_Too_Much_Value", PasteLimit)
);
}
},
@ -266,7 +267,7 @@ export class MultiSelectInsertList extends Single {
keywords = keywords.concat([BlankSplitChar]);
}
return keywords.length > 2000 ? keywords.slice(0, 2000).concat([BlankSplitChar]) : keywords.slice(0, 2000);
return keywords.length > PasteLimit ? keywords.slice(0, PasteLimit).concat([BlankSplitChar]) : keywords.slice(0, PasteLimit);
}
_getKeywordsLength() {

9
packages/fineui/src/widget/multiselectlist/multiselectlist.insert.nobar.js

@ -28,7 +28,8 @@ import {
isNull,
VTapeLayout,
BlankSplitChar,
SIZE_CONSANTS
SIZE_CONSANTS,
PasteLimit,
} from "@/core";
import { Single, Searcher, Msg } from "@/base";
import { MultiSelectBar } from "@/case";
@ -201,10 +202,10 @@ export class MultiSelectInsertNoBarList extends Single {
}
self.fireEvent(MultiSelectInsertNoBarList.EVENT_CHANGE);
});
self._getKeywordsLength() > 2000 &&
self._getKeywordsLength() > PasteLimit &&
Msg.alert(
i18nText("BI-Basic_Prompt"),
i18nText("BI-Basic_Too_Much_Value_Get_Two_Thousand")
i18nText("BI-Basic_Paste_Too_Much_Value", PasteLimit)
);
}
},
@ -271,7 +272,7 @@ export class MultiSelectInsertNoBarList extends Single {
keywords = keywords.concat([BlankSplitChar]);
}
return keywords.length > 2000 ? keywords.slice(0, 2000).concat([BlankSplitChar]) : keywords.slice(0, 2000);
return keywords.length > PasteLimit ? keywords.slice(0, PasteLimit).concat([BlankSplitChar]) : keywords.slice(0, PasteLimit);
}
_getKeywordsLength() {

11
packages/fineui/src/widget/multitree/multi.tree.combo.js

@ -182,6 +182,7 @@ export class MultiTreeCombo extends Single {
return self.combo.isViewVisible();
}
let shouldComboPopulate = true;
this.trigger.on(MultiSelectTrigger.EVENT_FOCUS, () => {
self.fireEvent(MultiTreeCombo.EVENT_FOCUS);
});
@ -259,7 +260,7 @@ export class MultiTreeCombo extends Single {
}
self.combo.setValue(self.storeValue);
self.numberCounter.setValue(self.storeValue);
self.populate();
shouldComboPopulate && self.populate();
self.fireEvent(MultiTreeCombo.EVENT_BEFORE_POPUPVIEW);
});
this.combo.on(Combo.EVENT_BEFORE_HIDEVIEW, () => {
@ -316,10 +317,18 @@ export class MultiTreeCombo extends Single {
valueFormatter: o.valueFormatter,
value: { value: o.value || {} },
});
this.numberCounter.on(
MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_COMBO,
() => {
self.populate();
shouldComboPopulate = true;
}
);
this.numberCounter.on(
MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE,
() => {
if (!self.combo.isViewVisible()) {
shouldComboPopulate = false;
self.combo.showView();
}
}

2
packages/fineui/typescript/core/var.ts

@ -130,6 +130,7 @@ export declare const VerticalAlign: {
export declare const StartOfWeek: number;
export declare const BlankSplitChar: string;
export declare const Events: Record<string, string>;
export declare const PasteLimit: number;
type SetFunc = (value: any) => void;
@ -141,3 +142,4 @@ export declare const setBlankSplitChar: SetFunc;
export declare const setPixFormat: SetFunc;
export declare const setToPix: SetFunc;
export declare const setEventBlur: SetFunc;
export declare const setPasteLimit: SetFunc;

1
scripts/lib/fui.export.txt

@ -295,6 +295,7 @@ Pager
Pane
Panel
PartTree
PasteLimit
Plugin
PlusGroupNode
Popover

Loading…
Cancel
Save