fix: disabled state button can still be click
This commit is contained in:
parent
80ab12d77d
commit
d1b81fe30e
1 changed files with 6 additions and 0 deletions
|
|
@ -15,6 +15,10 @@ withDefaults(
|
|||
label: '',
|
||||
},
|
||||
);
|
||||
|
||||
defineEmits<{
|
||||
(e: 'click'): void;
|
||||
}>();
|
||||
</script>
|
||||
<template>
|
||||
<button
|
||||
|
|
@ -26,6 +30,7 @@ withDefaults(
|
|||
['status-color-waiting']: statusWaiting,
|
||||
['step-status-active']: statusActive,
|
||||
}"
|
||||
@click="statusWaiting ? undefined : $emit('click')"
|
||||
>
|
||||
<div class="q-px-sm">
|
||||
<q-icon
|
||||
|
|
@ -59,6 +64,7 @@ withDefaults(
|
|||
&.status-color-waiting {
|
||||
--_color: var(--gray-4-hsl);
|
||||
color: var(--foreground);
|
||||
cursor: not-allowed !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue