refactor: set readonly
This commit is contained in:
parent
2d4d0c7783
commit
48017761c2
4 changed files with 44 additions and 33 deletions
|
|
@ -92,17 +92,13 @@ defineEmits<{
|
|||
|
||||
<template v-slot:body-cell-action="props">
|
||||
<q-td>
|
||||
<div
|
||||
class="row items-center full-width justify-end no-wrap"
|
||||
v-if="!readonly"
|
||||
>
|
||||
<div class="row items-center full-width justify-end no-wrap">
|
||||
<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"
|
||||
|
|
@ -124,7 +120,7 @@ defineEmits<{
|
|||
/>
|
||||
|
||||
<KebabAction
|
||||
v-if="!buttonDelete"
|
||||
v-if="!buttonDelete && !readonly"
|
||||
hide-toggle
|
||||
:id-name="props.row.code"
|
||||
:status="props.row.status"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue