Browse Source

Merge pull request #241402 in DEC/fineui from master to feature/x

* commit '6b00a11cac48dcb66fdb39932b8be4ddb3c5aecf':
  BI-129683 fix: 【6.0.12发散】文本下拉过滤组件绑定参数全选之后,全选按钮为半选导致取消勾选全选不能生效
research/test
superman 1 year ago
parent
commit
c5a4d9ce75
  1. 12
      packages/fineui/src/widget/multiselect/loader.js

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

@ -80,7 +80,7 @@ export class MultiSelectInnerLoader extends Widget {
}
o.itemsCreator.apply(this, [
{ times: ++this.times },
function () {
function() {
self.next.setLoaded();
self.addItems(...arguments);
}
@ -105,7 +105,7 @@ export class MultiSelectInnerLoader extends Widget {
],
value: o.value,
});
this.button_group.on(Controller.EVENT_CHANGE, function (type, value, obj) {
this.button_group.on(Controller.EVENT_CHANGE, function(type, value, obj) {
if (type === Events.CLICK) {
const node = self.cachGroup.getNodeByValue(value);
if (node) {
@ -160,7 +160,7 @@ export class MultiSelectInnerLoader extends Widget {
o.isDefaultInit &&
isEmpty(o.items) &&
nextTick(
bind(function () {
bind(function() {
o.isDefaultInit && isEmpty(o.items) && this._populate();
}, this)
);
@ -221,7 +221,7 @@ export class MultiSelectInnerLoader extends Widget {
if (arguments.length === 0 && isFunction(o.itemsCreator)) {
o.itemsCreator.apply(this, [
{ times: 1 },
function (items, keyword) {
function(items, keyword) {
if (arguments.length === 0) {
throw new Error("object already registered");
}
@ -289,11 +289,11 @@ export class MultiSelectInnerLoader extends Widget {
}
getAllButtons() {
return this.button_group.getAllButtons();
return this.cachGroup.getAllButtons();
}
getAllLeaves() {
return this.button_group.getAllLeaves();
return this.cachGroup.getAllLeaves();
}
getSelectedButtons() {

Loading…
Cancel
Save