@alauda/ui 6.3.1-beta.14 → 6.3.1-beta.15
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.
- package/esm2020/select/multi-select/multi-select.component.mjs +11 -3
- package/fesm2015/alauda-ui.mjs +10 -2
- package/fesm2015/alauda-ui.mjs.map +1 -1
- package/fesm2020/alauda-ui.mjs +10 -2
- package/fesm2020/alauda-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/select/multi-select/multi-select.component.d.ts +1 -0
package/fesm2020/alauda-ui.mjs
CHANGED
|
@@ -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 => !
|
|
5500
|
+
this.emitValue(this.model.filter(value => !this.includes(visibleOptionsValue, value)));
|
|
5501
5501
|
}
|
|
5502
5502
|
else {
|
|
5503
|
-
this.emitValue(
|
|
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(() => {
|