refactor: emit sarch
This commit is contained in:
parent
7510928e66
commit
df26c3125e
1 changed files with 11 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ const prop = defineProps<{
|
|||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'search', id: string, value: string, mode: 'service' | 'product'): void;
|
||||
(e: 'selectGroup', id: string): void;
|
||||
(e: 'submit', nodes: Node[]): void;
|
||||
}>();
|
||||
|
|
@ -735,6 +736,16 @@ watch(
|
|||
border-search-section
|
||||
item-class="col-md-3 col-sm-6 col-12"
|
||||
v-model:selected-item="preSelectedItems"
|
||||
@search="
|
||||
(value) => {
|
||||
$emit(
|
||||
'search',
|
||||
selectedProductGroup,
|
||||
value,
|
||||
pageState.productServiceTab === '1' ? 'service' : 'product',
|
||||
);
|
||||
}
|
||||
"
|
||||
:items="
|
||||
pageState.productServiceTab === '1'
|
||||
? productServiceCard && productServiceCard.service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue