fix(05): product item table
This commit is contained in:
parent
9d745d8e52
commit
e3b1693214
3 changed files with 67 additions and 59 deletions
|
|
@ -86,44 +86,46 @@ defineEmits<{
|
|||
</template>
|
||||
|
||||
<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"
|
||||
@click="$emit('delete', props.rowIndex)"
|
||||
/>
|
||||
<q-td>
|
||||
<div class="row items-center full-width justify-end">
|
||||
<slot name="button" :props="props"></slot>
|
||||
<DeleteButton
|
||||
iconOnly
|
||||
v-if="buttonDelete"
|
||||
@click="$emit('delete', props.rowIndex)"
|
||||
/>
|
||||
|
||||
<q-btn
|
||||
v-if="!buttonDelete"
|
||||
icon="mdi-eye-outline"
|
||||
size="sm"
|
||||
dense
|
||||
round
|
||||
flat
|
||||
@click.stop="$emit('view', props.rowIndex)"
|
||||
/>
|
||||
<q-btn
|
||||
v-if="!buttonDelete"
|
||||
icon="mdi-eye-outline"
|
||||
size="sm"
|
||||
dense
|
||||
round
|
||||
flat
|
||||
@click.stop="$emit('view', props.rowIndex)"
|
||||
/>
|
||||
|
||||
<q-btn
|
||||
v-if="buttomDownload && props.row.id !== undefined"
|
||||
icon="mdi-download-outline"
|
||||
size="sm"
|
||||
dense
|
||||
round
|
||||
flat
|
||||
@click.stop="$emit('download', props.rowIndex)"
|
||||
/>
|
||||
<q-btn
|
||||
v-if="buttomDownload && props.row.id !== undefined"
|
||||
icon="mdi-download-outline"
|
||||
size="sm"
|
||||
dense
|
||||
round
|
||||
flat
|
||||
@click.stop="$emit('download', props.rowIndex)"
|
||||
/>
|
||||
|
||||
<KebabAction
|
||||
v-if="!buttonDelete"
|
||||
hide-toggle
|
||||
:id-name="props.row.code"
|
||||
:status="props.row.status"
|
||||
@view="$emit('view', props.rowIndex)"
|
||||
@edit="$emit('edit', props.rowIndex)"
|
||||
@delete="$emit('delete', props.rowIndex)"
|
||||
@change-status="$emit('toggleStatus', props.row)"
|
||||
/>
|
||||
<KebabAction
|
||||
v-if="!buttonDelete"
|
||||
hide-toggle
|
||||
:id-name="props.row.code"
|
||||
:status="props.row.status"
|
||||
@view="$emit('view', props.rowIndex)"
|
||||
@edit="$emit('edit', props.rowIndex)"
|
||||
@delete="$emit('delete', props.rowIndex)"
|
||||
@change-status="$emit('toggleStatus', props.row)"
|
||||
/>
|
||||
</div>
|
||||
</q-td>
|
||||
|
||||
<slot name="dialog" :index="props.rowIndex" :row="props.row"></slot>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue