From f5f77a50bc2aa463beb5ab61eae6f3799f2f2c55 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 9 Dec 2024 08:49:26 +0100 Subject: [PATCH] refactor: added again search emit --- src/components/ui/VnFilterPanel.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 8879b5c53..c17414ac1 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -37,7 +37,7 @@ const $props = defineProps({ }, hiddenTags: { type: Array, - default: () => ['filter', 'or', 'and'], + default: () => ['filter', 'search', 'or', 'and'], }, customTags: { type: Array, @@ -61,6 +61,7 @@ const emit = defineEmits([ 'update:modelValue', 'refresh', 'clear', + 'search', 'init', 'remove', 'setUserParams', @@ -127,6 +128,7 @@ async function search(evt) { userParams.value = newParams; if (!$props.showAll && !Object.values(filter).length) store.data = []; + emit('search'); } finally { isLoading.value = false; }