Browse Source

BI-143833 fix: 全选时数据变化,点击确定组件不会刷新

research/test
Jimmy.Chai 8 months ago
parent
commit
3192129ee7
  1. 2
      packages/fineui/src/widget/multiselect/multiselect.insert.combo.js

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

@ -220,7 +220,7 @@ export class MultiSelectInsertCombo extends Single {
o.itemsCreator(op, ob => { o.itemsCreator(op, ob => {
callback(ob); callback(ob);
// 全选时数据变化,配置需要同步 // 全选时数据变化,配置需要同步
if (this.storeValue.type === Selection.All && size(ob.items) !== size(this.storeValue.assist)) { if (op.times === 1 &&this.storeValue.type === Selection.All && size(ob.items) !== size(this.storeValue.assist)) {
this._dataChange = true; this._dataChange = true;
this.storeValue.assist = map(ob.items, 'value'); this.storeValue.assist = map(ob.items, 'value');
this._adjust(() => { this._adjust(() => {

Loading…
Cancel
Save