0
0
Fork 0

refactor: added again search emit

This commit is contained in:
Jon Elias 2024-12-09 08:49:26 +01:00
parent 0c88db5931
commit f5f77a50bc
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}