Browse Source

Pull request #3601: 无jira任务 自动更新 VISUAL/fineui master分支 Tue Jul 04 2023 12:10:55 GMT+0800 (中国标准时间)

Merge in VISUAL/fineui from DEC/fineui:release/11.0 to master

* commit '225d9d83308b31bec7ab1f62f9dadd5b01143e87':
  无JIRA 组件名大小写修正
  REPORT-101548 下拉复选树this指向问题
  无jira 扩展运算符补正
  REPORT-101145 fix:新前端-视图树控件-设置不可用后还是能选中选项
  导出 bi.context
  无JIRA  report模板用的worker适配+删减
  无JIRA $和Jquery的环境问题兼容FR
  REPORT-100874 fix:【专题】【权限复用】权限复用时默认状态下选中部门,搜索状态下取消其中1个职务,取消搜索后发现职务还是选中状态
  无JRIA Workers挂载到BI上
  REPORT-97526 feat:给带搜索的多选多层级树增加searcherPaneAutoShrink,searcherPaneIsSelectedAny字段
  BI-128437  提交Final fix: 【来源PT项目】BI绑定参数文本下拉问题
  BI-128881 fix: 深色主题无更多数据这几个字没有显示出来
  BI-128988 fix: 【来源PT项目】文本过滤组件文本列表勾选状态异常 - 提交final
research/test
Aeolus.Zhang-张敬峥 1 year ago committed by Dailer-刘荣歆
parent
commit
eec0263271
  1. 4
      packages/fineui/src/base/combination/expander.js
  2. 4
      packages/fineui/src/base/combination/group.button.js
  3. 2
      packages/fineui/src/base/combination/loader.js
  4. 2
      packages/fineui/src/base/combination/navigation.js
  5. 2
      packages/fineui/src/base/combination/switcher.js
  6. 2
      packages/fineui/src/base/combination/tab.js
  7. 1
      packages/fineui/src/base/index.js
  8. 2
      packages/fineui/src/base/single/0.single.js
  9. 2
      packages/fineui/src/base/single/button/button.basic.js
  10. 2
      packages/fineui/src/base/single/editor/editor.textarea.js
  11. 2
      packages/fineui/src/base/single/input/checkbox/checkbox.js
  12. 2
      packages/fineui/src/base/single/input/file.js
  13. 2
      packages/fineui/src/base/single/input/input.js
  14. 2
      packages/fineui/src/base/single/input/radio/radio.image.js
  15. 2
      packages/fineui/src/base/single/input/radio/radio.js
  16. 7
      packages/fineui/src/bundle.js
  17. 2
      packages/fineui/src/case/ztree/list/listasynctree.js
  18. 2
      packages/fineui/src/case/ztree/list/listparttree.js
  19. 2
      packages/fineui/src/case/ztree/list/listtreeview.js
  20. 13
      packages/fineui/src/case/ztree/parttree.js
  21. 2
      packages/fineui/src/case/ztree/tree.list.display.js
  22. 29
      packages/fineui/src/component/treevaluechooser/abstract.treevaluechooser.js
  23. 2
      packages/fineui/src/component/treevaluechooser/abstract.treevaluechooser.list.js
  24. 9
      packages/fineui/src/component/treevaluechooser/pane.treevaluechooser.js
  25. 2
      packages/fineui/src/core/controller/controller.masker.js
  26. 2
      packages/fineui/src/core/loader/loader.style.js
  27. 19
      packages/fineui/src/less/core/utils/list-item.less
  28. 2
      packages/fineui/src/widget/multiselecttree/multiselecttree.js
  29. 4
      packages/fineui/src/widget/multitree/multi.tree.list.combo.js
  30. 6
      packages/fineui/src/widget/multitree/trigger/multi.tree.search.pane.js
  31. 36
      packages/fineui/src/worker.js
  32. 8
      packages/fineui/typescript/bundle.ts
  33. 6
      packages/fineui/webpack/attachments.js
  34. 4
      scripts/lib/fui.component.json
  35. 4
      scripts/lib/fui.export.txt

4
packages/fineui/src/base/combination/expander.js

@ -276,7 +276,7 @@ export class Expander extends Widget {
} }
_setEnable(arg) { _setEnable(arg) {
super._setEnable(arguments); super._setEnable(...arguments);
!arg && this.element.removeClass(this.options.hoverClass); !arg && this.element.removeClass(this.options.hoverClass);
!arg && this.isViewVisible() && this._hideView(); !arg && this.isViewVisible() && this._hideView();
} }
@ -341,6 +341,6 @@ export class Expander extends Widget {
} }
destroy() { destroy() {
super.destroy(arguments); super.destroy(...arguments);
} }
} }

4
packages/fineui/src/base/combination/group.button.js

@ -418,12 +418,12 @@ export class ButtonGroup extends Widget {
} }
empty() { empty() {
super.empty(arguments); super.empty(...arguments);
this.options.items = []; this.options.items = [];
} }
destroy() { destroy() {
super.destroy(arguments); super.destroy(...arguments);
this.options.items = []; this.options.items = [];
} }
} }

2
packages/fineui/src/base/combination/loader.js

@ -342,6 +342,6 @@ export class Loader extends Widget {
} }
destroy() { destroy() {
super.destroy(arguments); super.destroy(...arguments);
} }
} }

2
packages/fineui/src/base/combination/navigation.js

@ -191,6 +191,6 @@ export class Navigation extends Widget {
} }
destroy() { destroy() {
super.destroy(arguments); super.destroy(...arguments);
} }
} }

2
packages/fineui/src/base/combination/switcher.js

@ -263,7 +263,7 @@ export class Switcher extends Widget {
} }
_setEnable(arg) { _setEnable(arg) {
super._setEnable(arguments); super._setEnable(...arguments);
!arg && this.isViewVisible() && this._hideView(); !arg && this.isViewVisible() && this._hideView();
} }

2
packages/fineui/src/base/combination/tab.js

@ -200,6 +200,6 @@ export class Tab extends Widget {
destroy() { destroy() {
this.cardMap = {}; this.cardMap = {};
super.destroy(arguments); super.destroy(...arguments);
} }
} }

1
packages/fineui/src/base/index.js

@ -11,3 +11,4 @@ export * from "./layer";
export * from "./list"; export * from "./list";
export * from "./single"; export * from "./single";
export * from "./el"; export * from "./el";
export * from "./context";

2
packages/fineui/src/base/single/0.single.js

@ -72,7 +72,7 @@ export class Single extends Widget {
this.setValue(newValue); this.setValue(newValue);
}) })
: value; : value;
super._init(arguments); super._init(...arguments);
} }
_mounted() { _mounted() {

2
packages/fineui/src/base/single/button/button.basic.js

@ -69,7 +69,7 @@ export class BasicButton extends Single {
this.setSelected(newValue); this.setSelected(newValue);
}) })
: opts.selected; : opts.selected;
super._init(arguments); super._init(...arguments);
if (opts.shadow) { if (opts.shadow) {
this._createShadow(); this._createShadow();

2
packages/fineui/src/base/single/editor/editor.textarea.js

@ -279,7 +279,7 @@ export class TextAreaEditor extends Single {
} }
_setValid(b) { _setValid(b) {
super._setValid(arguments); super._setValid(...arguments);
// this.content.setValid(b); // this.content.setValid(b);
// this.watermark && this.watermark.setValid(b); // this.watermark && this.watermark.setValid(b);
} }

2
packages/fineui/src/base/single/input/checkbox/checkbox.js

@ -52,7 +52,7 @@ export class Checkbox extends BasicButton {
} }
doClick() { doClick() {
super.doClick(arguments); super.doClick(...arguments);
if (this.isValid()) { if (this.isValid()) {
this.fireEvent(Checkbox.EVENT_CHANGE); this.fireEvent(Checkbox.EVENT_CHANGE);
} }

2
packages/fineui/src/base/single/input/file.js

@ -759,7 +759,7 @@ export class File extends Widget {
} }
_setEnable(enable) { _setEnable(enable) {
super._setEnable(arguments); super._setEnable(...arguments);
if (enable === true) { if (enable === true) {
this.element.removeAttr("disabled"); this.element.removeAttr("disabled");
} else { } else {

2
packages/fineui/src/base/single/input/input.js

@ -344,7 +344,7 @@ export class Input extends Single {
} }
_setValid() { _setValid() {
super._setValid(arguments); super._setValid(...arguments);
if (this.isValid()) { if (this.isValid()) {
this._lastChangedValue = this.getValue(); this._lastChangedValue = this.getValue();
this.element.removeClass("bi-input-error"); this.element.removeClass("bi-input-error");

2
packages/fineui/src/base/single/input/radio/radio.image.js

@ -28,7 +28,7 @@ export class ImageRadio extends IconButton {
} }
doClick() { doClick() {
super.doClick(arguments); super.doClick(...arguments);
if (this.isValid()) { if (this.isValid()) {
this.fireEvent(ImageRadio.EVENT_CHANGE); this.fireEvent(ImageRadio.EVENT_CHANGE);
} }

2
packages/fineui/src/base/single/input/radio/radio.js

@ -51,7 +51,7 @@ export class Radio extends BasicButton {
} }
doClick() { doClick() {
super.doClick(arguments); super.doClick(...arguments);
if (this.isValid()) { if (this.isValid()) {
this.fireEvent(Radio.EVENT_CHANGE); this.fireEvent(Radio.EVENT_CHANGE);
} }

7
packages/fineui/src/bundle.js

@ -5,12 +5,15 @@ import {_defineVarProperties} from "@/core/constant/writable.var";
_global.BI = _global.BI || {}; _global.BI = _global.BI || {};
// for fr, 已经有的就不对外暴露了.
// 要知道BI只有`BI.$`, 挂在全局对象上的只是为了兼容而已
if (!_global.$ && !_global.jQuery) {
_global.jQuery = _global.$ = fuiExport.$;
}
Object.assign(_global, { Object.assign(_global, {
Fix: fuiExport.Fix, Fix: fuiExport.Fix,
_: fuiExport._, _: fuiExport._,
$: fuiExport.$,
jQuery: fuiExport.$,
}); });
Object.assign(_global.BI, fuiExport, injectFn); Object.assign(_global.BI, fuiExport, injectFn);

2
packages/fineui/src/case/ztree/list/listasynctree.js

@ -11,7 +11,7 @@ import $ from "jquery";
*/ */
@shortcut() @shortcut()
export class Listasynctree extends Listtreeview { export class ListAsyncTree extends ListTreeView {
static xtype = "bi.list_async_tree"; static xtype = "bi.list_async_tree";
// 配置属性 // 配置属性

2
packages/fineui/src/case/ztree/list/listparttree.js

@ -11,7 +11,7 @@ import $ from "jquery";
*/ */
@shortcut() @shortcut()
export class ListPartTree extends Listasynctree { export class ListPartTree extends ListAsyncTree {
static xtype = "bi.list_part_tree"; static xtype = "bi.list_part_tree";
_loadMore() { _loadMore() {

2
packages/fineui/src/case/ztree/list/listtreeview.js

@ -11,7 +11,7 @@ import $ from "jquery";
*/ */
@shortcut() @shortcut()
export class Listtreeview extends TreeView { export class ListTreeView extends TreeView {
static xtype = "bi.list_tree_view"; static xtype = "bi.list_tree_view";
_constants = { _constants = {

13
packages/fineui/src/case/ztree/parttree.js

@ -16,6 +16,12 @@ export class PartTree extends AsyncTree {
static EVENT_CLICK_TREE_NODE = "EVENT_CLICK_TREE_NODE"; static EVENT_CLICK_TREE_NODE = "EVENT_CLICK_TREE_NODE";
_defaultConfig() {
return extend(super._defaultConfig(...arguments), {
isSelectedAny: true, //是否返回所有被checked的结点(包括被checked的结点的子结点)
});
}
constructor(...args) { constructor(...args) {
super(...args); super(...args);
this.seMethos = super._selectTreeNode; this.seMethos = super._selectTreeNode;
@ -55,8 +61,11 @@ export class PartTree extends AsyncTree {
const name = this._getNodeValue(treeNode); const name = this._getNodeValue(treeNode);
this.fireEvent(PartTree.EVENT_CLICK_TREE_NODE); this.fireEvent(PartTree.EVENT_CLICK_TREE_NODE);
if (treeNode.checked === true) { if (treeNode.checked === true) {
this.options.paras.selectedValues = this._getUnionValue(); if (this.options.isSelectedAny) {
// this._buildTree(self.options.paras.selectedValues, concat(parentValues, name)); this.options.paras.selectedValues = this._getUnionValue(); //获取所有被selected的结点
} else {
this._addTreeNode(this.options.paras.selectedValues, parentValues, name, {});//给selectedValues增加被click的结点(不包含该节点的子结点)
}
o.itemsCreator( o.itemsCreator(
extend({}, o.paras, { extend({}, o.paras, {
type: TreeView.REQ_TYPE_ADJUST_DATA, type: TreeView.REQ_TYPE_ADJUST_DATA,

2
packages/fineui/src/case/ztree/tree.list.display.js

@ -10,7 +10,7 @@ import $ from "jquery";
*/ */
@shortcut() @shortcut()
export class ListDisplayTree extends Listtreeview { export class ListDisplayTree extends ListTreeView {
static xtype = "bi.list_display_tree"; static xtype = "bi.list_display_tree";
static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_CHANGE = "EVENT_CHANGE";

29
packages/fineui/src/component/treevaluechooser/abstract.treevaluechooser.js

@ -174,6 +174,7 @@ export class AbstractTreeValueChooser extends Widget {
} }
_reqSelectedTreeNode(op, callback) { _reqSelectedTreeNode(op, callback) {
const self = this;
const selectedValues = deepClone(op.selectedValues); const selectedValues = deepClone(op.selectedValues);
const notSelectedValue = op.notSelectedValue || {}; const notSelectedValue = op.notSelectedValue || {};
const keyword = op.keyword || ""; const keyword = op.keyword || "";
@ -188,7 +189,7 @@ export class AbstractTreeValueChooser extends Widget {
dealWithSelectedValues(selectedValues); dealWithSelectedValues(selectedValues);
callback(selectedValues); callback(selectedValues);
const dealWithSelectedValues = selectedValues => { function dealWithSelectedValues(selectedValues) {
let p = parentValues.concat(notSelectedValue); let p = parentValues.concat(notSelectedValue);
// 存储的值中存在这个值就把它删掉 // 存储的值中存在这个值就把它删掉
// 例如选中了中国-江苏-南京, 取消中国或江苏或南京 // 例如选中了中国-江苏-南京, 取消中国或江苏或南京
@ -197,18 +198,18 @@ export class AbstractTreeValueChooser extends Widget {
// 如果搜索的值在父亲链中 // 如果搜索的值在父亲链中
if (isSearchValueInParent(p)) { if (isSearchValueInParent(p)) {
// 例如选中了 中国-江苏, 搜索江苏, 取消江苏(干掉了江苏) // 例如选中了 中国-江苏, 搜索江苏, 取消江苏(干掉了江苏)
this._deleteNode(selectedValues, p); self._deleteNode(selectedValues, p);
} else { } else {
const searched = []; const searched = [];
// 要找到所有以notSelectedValue为叶子节点的链路 // 要找到所有以notSelectedValue为叶子节点的链路
const find = search(parentValues, notSelectedValue, [], searched); const find = search(parentValues, notSelectedValue, [], searched);
if (find && isNotEmptyArray(searched)) { if (find && isNotEmptyArray(searched)) {
each(searched, (i, arr) => { each(searched, (i, arr) => {
const node = this._getNode(selectedValues, arr); const node = self._getNode(selectedValues, arr);
if (node) { if (node) {
// 例如选中了 中国-江苏, 搜索江苏, 取消中国(实际上只想删除中国-江苏,因为搜的是江苏) // 例如选中了 中国-江苏, 搜索江苏, 取消中国(实际上只想删除中国-江苏,因为搜的是江苏)
// 例如选中了 中国-江苏-南京,搜索南京,取消中国(实际上只想删除中国-江苏-南京,因为搜的是南京) // 例如选中了 中国-江苏-南京,搜索南京,取消中国(实际上只想删除中国-江苏-南京,因为搜的是南京)
this._deleteNode(selectedValues, arr); self._deleteNode(selectedValues, arr);
} else { } else {
// 例如选中了 中国-江苏,搜索南京,取消中国(实际上只想删除中国-江苏-南京,因为搜的是南京) // 例如选中了 中国-江苏,搜索南京,取消中国(实际上只想删除中国-江苏-南京,因为搜的是南京)
expandSelectedValue(selectedValues, arr, last(arr)); expandSelectedValue(selectedValues, arr, last(arr));
@ -239,14 +240,14 @@ export class AbstractTreeValueChooser extends Widget {
// 添加去掉搜索的结果集 // 添加去掉搜索的结果集
if (result.length > 0) { if (result.length > 0) {
each(result, (i, strs) => { each(result, (i, strs) => {
this._buildTree(selectedValues, strs); self._buildTree(selectedValues, strs);
}); });
} }
} }
} }
}; };
const expandSelectedValue = (selectedValues, parents, notSelectedValue) => { function expandSelectedValue(selectedValues, parents, notSelectedValue) {
let next = selectedValues; let next = selectedValues;
const childrenCount = []; const childrenCount = [];
const path = []; const path = [];
@ -259,7 +260,7 @@ export class AbstractTreeValueChooser extends Widget {
} }
if (isEmpty(next)) { if (isEmpty(next)) {
const split = parents.slice(0, i); const split = parents.slice(0, i);
const expanded = this._getChildren(split); const expanded = self._getChildren(split);
path.push(split); path.push(split);
childrenCount.push(expanded.length); childrenCount.push(expanded.length);
// 如果只有一个值且取消的就是这个值 // 如果只有一个值且取消的就是这个值
@ -270,7 +271,7 @@ export class AbstractTreeValueChooser extends Widget {
) { ) {
for (let j = childrenCount.length - 1; j >= 0; j--) { for (let j = childrenCount.length - 1; j >= 0; j--) {
if (childrenCount[j] === 1) { if (childrenCount[j] === 1) {
this._deleteNode(selectedValues, path[j]); self._deleteNode(selectedValues, path[j]);
} else { } else {
break; break;
} }
@ -295,16 +296,16 @@ export class AbstractTreeValueChooser extends Widget {
}); });
}; };
const search = (parents, current, result, searched) => { function search(parents, current, result, searched) {
const newParents = clone(parents); const newParents = clone(parents);
newParents.push(current); newParents.push(current);
if (this._isMatch(parents, current, keyword)) { if (self._isMatch(parents, current, keyword)) {
searched && searched.push(newParents); searched && searched.push(newParents);
return true; return true;
} }
const children = this._getChildren(newParents); const children = self._getChildren(newParents);
const notSearch = []; const notSearch = [];
let can = false; let can = false;
@ -327,9 +328,9 @@ export class AbstractTreeValueChooser extends Widget {
return can; return can;
}; };
const isSearchValueInParent = parentValues => { function isSearchValueInParent(parentValues) {
for (let i = 0, len = parentValues.length; i < len; i++) { for (let i = 0, len = parentValues.length; i < len; i++) {
if (this._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) { if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) {
return true; return true;
} }
} }
@ -389,7 +390,7 @@ export class AbstractTreeValueChooser extends Widget {
each(selected, (k, v) => { each(selected, (k, v) => {
const p = clone(parents); const p = clone(parents);
p.push(k); p.push(k);
if (!dealWithSelectedValues(selected[k], p)) { if (!dealWithSelectedValues(selected[k], p) || op.searcherPaneAutoShrink === false) {
each(selected[k], (nk, nv) => { each(selected[k], (nk, nv) => {
const t = clone(p); const t = clone(p);
t.push(nk); t.push(nk);

2
packages/fineui/src/component/treevaluechooser/abstract.treevaluechooser.list.js

@ -31,7 +31,7 @@ export class AbstractListTreeValueChooser extends AbstractTreeValueChooser {
return; return;
} }
doCheck([], this.tree.getRoot(), selectedValues); doCheck.call(this, [], this.tree.getRoot(), selectedValues);
callback({ callback({
items: values(result), items: values(result),

9
packages/fineui/src/component/treevaluechooser/pane.treevaluechooser.js

@ -15,6 +15,9 @@ export class TreeValueChooserPane extends AbstractTreeValueChooser {
items: null, items: null,
itemsCreator: emptyFn, itemsCreator: emptyFn,
showLine: true, showLine: true,
//searcherPaneAutoShrink和searcherPaneIsSelectedAny同时为false时,返回值和非搜索状态下的树逻辑一致
searcherPaneAutoShrink: true,//其搜索树是否会判别子结点全选则取父结点的值
searcherPaneIsSelectedAny: true, //其搜索树是否返回所有被checked的结点(包括被checked的结点的子结点)
}); });
} }
@ -25,7 +28,11 @@ export class TreeValueChooserPane extends AbstractTreeValueChooser {
type: o.hideSearch ? MultiSelectTreePopup.xtype : MultiSelectTree.xtype, type: o.hideSearch ? MultiSelectTreePopup.xtype : MultiSelectTree.xtype,
element: this, element: this,
showLine: o.showLine, showLine: o.showLine,
itemsCreator: bind(this._itemsCreator, this), searcherPaneIsSelectedAny: o.hideSearch || o.searcherPaneIsSelectedAny,
itemsCreator: (options, callback) => {
options.searcherPaneAutoShrink = o.hideSearch || o.searcherPaneAutoShrink;
this._itemsCreator.call(this, options, callback);
},
}); });
this.pane.on(MultiSelectTree.EVENT_CHANGE, () => { this.pane.on(MultiSelectTree.EVENT_CHANGE, () => {

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

@ -12,7 +12,7 @@ export class MaskersController extends LayerController {
} }
init() { init() {
super.init(arguments); super.init(...arguments);
this.zindex = zIndex_masker; this.zindex = zIndex_masker;
} }
} }

2
packages/fineui/src/core/loader/loader.style.js

@ -13,7 +13,7 @@ export class StyleLoaderManager extends OB {
} }
_init() { _init() {
super._init(arguments); super._init(...arguments);
this.stylesManager = {}; this.stylesManager = {};
} }

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的时候文字变黑 // hover的时候文字变黑
// active的时候文字高亮 // active的时候文字高亮
.bi-list-item-effect { .bi-list-item-effect {

2
packages/fineui/src/widget/multiselecttree/multiselecttree.js

@ -16,6 +16,7 @@ export class MultiSelectTree extends Single {
baseCls: "bi-multi-select-tree", baseCls: "bi-multi-select-tree",
itemsCreator: emptyFn, itemsCreator: emptyFn,
simple: false, simple: false,
searcherPaneIsSelectedAny: true,
}); });
} }
@ -44,6 +45,7 @@ export class MultiSelectTree extends Single {
this.searcherPane = createWidget({ this.searcherPane = createWidget({
type: MultiTreeSearchPane.xtype, type: MultiTreeSearchPane.xtype,
cls: "bi-border-left bi-border-right bi-border-bottom", cls: "bi-border-left bi-border-right bi-border-bottom",
isSelectedAny: o.searcherPaneIsSelectedAny,
keywordGetter() { keywordGetter() {
return self.searcher.getKeyword(); return self.searcher.getKeyword();
}, },

4
packages/fineui/src/widget/multitree/multi.tree.list.combo.js

@ -19,7 +19,7 @@ import { Single, Combo } from "@/base";
import { MultiTreeSearchInsertPane } from "./trigger/multi.tree.search.insert.pane"; import { MultiTreeSearchInsertPane } from "./trigger/multi.tree.search.insert.pane";
import { MultiTreePopup } from "./multi.tree.popup"; import { MultiTreePopup } from "./multi.tree.popup";
import { MultiSelectTrigger } from "../multiselect/multiselect.trigger"; import { MultiSelectTrigger } from "../multiselect/multiselect.trigger";
import { TriggerIconButton, ListPartTree, ListDisplayTree, Listasynctree } from "@/case"; import { TriggerIconButton, ListPartTree, ListDisplayTree, ListAsyncTree } from "@/case";
import { MultiSelectCheckSelectedSwitcher } from "../multiselect/trigger/switcher.checkselected"; import { MultiSelectCheckSelectedSwitcher } from "../multiselect/trigger/switcher.checkselected";
@shortcut() @shortcut()
@ -126,7 +126,7 @@ export class MultiTreeListCombo extends Single {
self.numberCounter.setAdapter(this); self.numberCounter.setAdapter(this);
}, },
el: { el: {
type: Listasynctree.xtype, type: ListAsyncTree.xtype,
}, },
listeners: [ listeners: [
{ {

6
packages/fineui/src/widget/multitree/trigger/multi.tree.search.pane.js

@ -6,7 +6,10 @@ import { TreeView, PartTree } from "@/case";
export class MultiTreeSearchPane extends Pane { export class MultiTreeSearchPane extends Pane {
static xtype = "bi.multi_tree_search_pane"; static xtype = "bi.multi_tree_search_pane";
props = { baseCls: "bi-multi-tree-search-pane bi-card" }; props = {
baseCls: "bi-multi-tree-search-pane bi-card",
isSelectedAny: true,
};
static EVENT_CHANGE = "EVENT_CHANGE"; static EVENT_CHANGE = "EVENT_CHANGE";
static EVENT_CLICK_CONFIRM = "EVENT_CLICK_CONFIRM"; static EVENT_CLICK_CONFIRM = "EVENT_CLICK_CONFIRM";
@ -22,6 +25,7 @@ export class MultiTreeSearchPane extends Pane {
type: PartTree.xtype, type: PartTree.xtype,
element: this, element: this,
tipText: i18nText("BI-No_Select"), tipText: i18nText("BI-No_Select"),
isSelectedAny: opts.isSelectedAny,
itemsCreator(op, callback) { itemsCreator(op, callback) {
op.keyword = opts.keywordGetter(); op.keyword = opts.keywordGetter();
opts.itemsCreator(op, callback); opts.itemsCreator(op, callback);

36
packages/fineui/src/worker.js

@ -0,0 +1,36 @@
// sideEffects
import "./core/system";
import * as _core from "./core";
import * as _base from "./base";
import * as _fix from "./fix";
import * as _router from "./router";
export * as Popper from "@popperjs/core";
import * as D from "@/core/decorator";
import { Fix } from "./fix";
const Decorators = { ...D, Model: Fix.Model };
const fuiExport = {
..._core,
..._base,
..._fix,
..._router
};
import * as injectFn from "@/core/5.inject";
import { _global } from "@/core/0.foundation";
import { _defineVarProperties } from "@/core/constant/writable.var";
_global.BI = _global.BI || {};
Object.assign(_global, {
Fix: fuiExport.Fix,
_: fuiExport._,
});
Object.assign(_global.BI, fuiExport, injectFn, { Decorators, });
_defineVarProperties(_global.BI);

8
packages/fineui/typescript/bundle.ts

@ -1,3 +1,5 @@
// import fineui from "./index"; import { Workers } from "./core/worker/workers";
// 仅Workers是ts实现的代码,所以要挂载到BI上
// BI.extend(BI, fineui); BI?.extend(BI, {
Workers: Workers
});

6
packages/fineui/webpack/attachments.js

@ -19,7 +19,8 @@ const basicAttachmentMap = {
"src/less/widget/**/*.less", "src/less/widget/**/*.less",
"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"])
}; };
const bundleCss = [].concat(basicAttachmentMap.less, sync(["public/less/app.less", "public/less/**/*.less"])); const bundleCss = [].concat(basicAttachmentMap.less, sync(["public/less/app.less", "public/less/**/*.less"]));
@ -34,8 +35,7 @@ const fineui = [].concat(
); );
const fineuiForWorker = [].concat( const fineuiForWorker = [].concat(
jqueryPolyfill, basicAttachmentMap.js_worker,
basicAttachmentMap.js_bundle,
basicAttachmentMap.ui, basicAttachmentMap.ui,
basicAttachmentMap.ts basicAttachmentMap.ts
); );

4
scripts/lib/fui.component.json

@ -167,9 +167,9 @@
"bi.small_select_text_trigger": "SmallSelectTextTrigger", "bi.small_select_text_trigger": "SmallSelectTextTrigger",
"bi.small_text_trigger": "SmallTextTrigger", "bi.small_text_trigger": "SmallTextTrigger",
"bi.async_tree": "AsyncTree", "bi.async_tree": "AsyncTree",
"bi.list_async_tree": "Listasynctree", "bi.list_async_tree": "ListAsyncTree",
"bi.list_part_tree": "ListPartTree", "bi.list_part_tree": "ListPartTree",
"bi.list_tree_view": "Listtreeview", "bi.list_tree_view": "ListTreeView",
"bi.part_tree": "PartTree", "bi.part_tree": "PartTree",
"bi.display_tree": "DisplayTree", "bi.display_tree": "DisplayTree",
"bi.list_display_tree": "ListDisplayTree", "bi.list_display_tree": "ListDisplayTree",

4
scripts/lib/fui.export.txt

@ -233,8 +233,8 @@ ListLoader
ListPane ListPane
ListPartTree ListPartTree
ListView ListView
Listasynctree ListAsyncTree
Listtreeview ListTreeView
Loader Loader
LoadingBar LoadingBar
Logic Logic

Loading…
Cancel
Save