基本上,在当前值中,我们以数组的形式获得了多个选项,但无法对其进行过滤。
this.params.onFloatingFilterChanged({ model: this.buildModel(this.currentValue) });
this.params.parentFilterInstance( (instance) => {
if (typeof this.currentValue === 'object') {
if (this.currentValue.length > 0) {
**instance.onFloatingFilterChanged('equals', this.currentValue);//this.currentValue=['enable','disable']**
} else {
instance.onFloatingFilterChanged('equals', '');
}
} else {
instance.onFloatingFilterChanged('equals', this.currentValue);
}
});