From 9f9835b7ab8d1a1d21945c82ff94ae2eb7e33352 Mon Sep 17 00:00:00 2001 From: JAVIER SEGARRA MARTINEZ Date: Fri, 26 Jan 2024 07:56:41 +0000 Subject: [PATCH] refs #6280: remove related code to filter-rules --- src/components/common/VnSelectFilter.vue | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/components/common/VnSelectFilter.vue b/src/components/common/VnSelectFilter.vue index a7ac4a7cd..7f10f5efe 100644 --- a/src/components/common/VnSelectFilter.vue +++ b/src/components/common/VnSelectFilter.vue @@ -12,15 +12,11 @@ const $props = defineProps({ default: () => [], }, optionLabel: { - type: [String, Function], + type: [String], default: '', }, filterOptions: { - type: [Array, Function], - default: () => [], - }, - filterRules: { - type: [Array, Function], + type: [Array], default: () => [], }, isClearable: { @@ -57,13 +53,6 @@ const filter = (val, options) => { const search = val.toString().toLowerCase(); if (!search) return options; - if($props.filterRules.length) { - const passSomeRule = $props.filterRules.some((rule) => { - const cond = eval(rule) - return cond; - }); - if(!passSomeRule) return options - } return options.filter((row) => { if ($props.filterOptions.length) {