@alauda/ui 6.3.1-beta.13 → 6.3.1-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2925,7 +2925,7 @@ class CommonFormControl {
2925
2925
  this.model$ = new ReplaySubject(1);
2926
2926
  this.model$.subscribe(model => {
2927
2927
  this.model = model;
2928
- this.cdr.detectChanges();
2928
+ this.cdr.markForCheck();
2929
2929
  });
2930
2930
  }
2931
2931
  get disabled() {
@@ -5497,12 +5497,20 @@ class MultiSelectComponent extends BaseSelect {
5497
5497
  .filter(({ visible, disabled }) => visible && !disabled)
5498
5498
  .map(({ value }) => value);
5499
5499
  if (this.selectAllStatus === SelectAllStatus.Checked) {
5500
- this.emitValue(this.model.filter(value => !visibleOptionsValue.includes(value)));
5500
+ this.emitValue(this.model.filter(value => !this.includes(visibleOptionsValue, value)));
5501
5501
  }
5502
5502
  else {
5503
- this.emitValue([...new Set(this.model.concat(visibleOptionsValue))]);
5503
+ this.emitValue(this.model.concat(visibleOptionsValue).reduce((acc, curr) => {
5504
+ if (!this.includes(acc, curr)) {
5505
+ acc.push(curr);
5506
+ }
5507
+ return acc;
5508
+ }, []));
5504
5509
  }
5505
5510
  }
5511
+ includes(values, value) {
5512
+ return values.some(v => this.trackFn(v) === this.trackFn(value));
5513
+ }
5506
5514
  valueIn(v) {
5507
5515
  this.resetInput();
5508
5516
  requestAnimationFrame(() => {