refactor: product item delete (incomplete)
This commit is contained in:
parent
c51f664beb
commit
23dc6858c6
2 changed files with 7 additions and 3 deletions
|
|
@ -88,7 +88,11 @@ defineEmits<{
|
|||
<template v-slot:body-cell-action="props">
|
||||
<q-td class="text-center row items-center">
|
||||
<slot name="button" :props="props"></slot>
|
||||
<DeleteButton iconOnly v-if="buttonDelete" />
|
||||
<DeleteButton
|
||||
iconOnly
|
||||
v-if="buttonDelete"
|
||||
@click="$emit('delete', props.rowIndex)"
|
||||
/>
|
||||
|
||||
<q-btn
|
||||
v-if="!buttonDelete"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue