refactor: add define props hide kebeb view and edit

This commit is contained in:
Thanaphon Frappet 2024-12-24 10:56:11 +07:00
parent c7c018a974
commit b2357f5d00
2 changed files with 10 additions and 3 deletions

View file

@ -9,10 +9,10 @@ const props = withDefaults(
idName: string;
status: string;
hideToggle?: boolean;
hideEdit?: boolean;
hideView?: boolean;
useLink?: boolean;
useUpload?: boolean;
hideEdit?: boolean;
disableDelete?: boolean;
}>(),
{
@ -54,6 +54,7 @@ watch(
<q-menu class="bordered" ref="refMenu" :key="idName">
<q-list>
<q-item
v-if="!hideView"
v-close-popup
dense
clickable
@ -159,7 +160,9 @@ watch(
}"
/>
<span class="col-9 q-px-md flex items-center">
{{ $t('general.delete') }}
<slot name="labelDelete">
{{ $t('general.delete') }}
</slot>
</span>
</q-item>