fix แก้ เงื่อนไข การกด emit

This commit is contained in:
Net 2024-06-21 09:20:21 +07:00
parent 9c515d10cc
commit 26b8cd8618

View file

@ -24,7 +24,7 @@ withDefaults(
class="full-width rounded bordered q-pa-sm" class="full-width rounded bordered q-pa-sm"
@click=" @click="
() => { () => {
if (!isDisabled) $emit('onClick'); $emit('onClick');
} }
" "
:class="{ :class="{
@ -64,7 +64,7 @@ withDefaults(
style="white-space: nowrap" style="white-space: nowrap"
@click=" @click="
() => { () => {
if (!isDisabled) $emit('viewCard'); $emit('viewCard');
} }
" "
> >
@ -85,9 +85,7 @@ withDefaults(
style="white-space: nowrap" style="white-space: nowrap"
@click=" @click="
() => { () => {
if (!isDisabled) { $emit('updateCard');
$emit('updateCard');
}
} }
" "
v-close-popup v-close-popup
@ -107,7 +105,7 @@ withDefaults(
clickable clickable
@click=" @click="
() => { () => {
if (!isDisabled) $emit('deleteCard'); $emit('deleteCard');
} }
" "
v-close-popup v-close-popup
@ -190,9 +188,7 @@ withDefaults(
<q-btn <q-btn
@click.stop=" @click.stop="
() => { () => {
if (!isDisabled) { $emit('viewDetail');
$emit('viewDetail');
}
} }
" "
unelevated unelevated
@ -226,6 +222,6 @@ withDefaults(
.disabled-card { .disabled-card {
opacity: 0.5; opacity: 0.5;
cursor: not-allowed; cursor: pointer;
} }
</style> </style>