fix แก้ เงื่อนไข การกด emit
This commit is contained in:
parent
9c515d10cc
commit
26b8cd8618
1 changed files with 6 additions and 10 deletions
|
|
@ -24,7 +24,7 @@ withDefaults(
|
|||
class="full-width rounded bordered q-pa-sm"
|
||||
@click="
|
||||
() => {
|
||||
if (!isDisabled) $emit('onClick');
|
||||
$emit('onClick');
|
||||
}
|
||||
"
|
||||
:class="{
|
||||
|
|
@ -64,7 +64,7 @@ withDefaults(
|
|||
style="white-space: nowrap"
|
||||
@click="
|
||||
() => {
|
||||
if (!isDisabled) $emit('viewCard');
|
||||
$emit('viewCard');
|
||||
}
|
||||
"
|
||||
>
|
||||
|
|
@ -85,9 +85,7 @@ withDefaults(
|
|||
style="white-space: nowrap"
|
||||
@click="
|
||||
() => {
|
||||
if (!isDisabled) {
|
||||
$emit('updateCard');
|
||||
}
|
||||
$emit('updateCard');
|
||||
}
|
||||
"
|
||||
v-close-popup
|
||||
|
|
@ -107,7 +105,7 @@ withDefaults(
|
|||
clickable
|
||||
@click="
|
||||
() => {
|
||||
if (!isDisabled) $emit('deleteCard');
|
||||
$emit('deleteCard');
|
||||
}
|
||||
"
|
||||
v-close-popup
|
||||
|
|
@ -190,9 +188,7 @@ withDefaults(
|
|||
<q-btn
|
||||
@click.stop="
|
||||
() => {
|
||||
if (!isDisabled) {
|
||||
$emit('viewDetail');
|
||||
}
|
||||
$emit('viewDetail');
|
||||
}
|
||||
"
|
||||
unelevated
|
||||
|
|
@ -226,6 +222,6 @@ withDefaults(
|
|||
|
||||
.disabled-card {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue