@@ -413,6 +413,9 @@ export default {
return {label: this.$primevue.config.locale[key], value: key}
});
},
+ isShowMatchModes() {
+ return this.type !== 'boolean' && this.showMatchModes && this.matchModes;
+ },
operatorOptions() {
return [
{label: this.$primevue.config.locale.matchAll, value: FilterOperator.AND},
@@ -423,7 +426,7 @@ export default {
return this.$primevue.config.locale.noFilter;
},
isShowOperator() {
- return this.showOperator && this.type !== 'boolean';
+ return this.showOperator && this.filters[this.field].operator;
},
operator() {
return this.filters[this.field].operator;
@@ -441,7 +444,7 @@ export default {
return this.$primevue.config.locale.addRule;
},
isShowAddConstraint() {
- return this.showAddButton && this.type !== 'boolean' && (this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints);
+ return this.showAddButton && this.filters[this.field].operator && (this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints);
},
clearButtonLabel() {
return this.$primevue.config.locale.clear;
diff --git a/src/views/datatable/DataTableFilterDemo.vue b/src/views/datatable/DataTableFilterDemo.vue
index 2cd8d3860..7d9d2703c 100755
--- a/src/views/datatable/DataTableFilterDemo.vue
+++ b/src/views/datatable/DataTableFilterDemo.vue
@@ -48,7 +48,7 @@
-
+
Agent
@@ -100,7 +100,7 @@
-
+
Status
@@ -113,7 +113,7 @@