feat: update status condition
This commit is contained in:
parent
b093e4b546
commit
594a416e3d
4 changed files with 48 additions and 32 deletions
|
|
@ -30,7 +30,7 @@ defineEmits<{
|
|||
['status-color-waiting']: statusWaiting,
|
||||
['step-status-active']: statusActive,
|
||||
}"
|
||||
@click="statusWaiting ? undefined : $emit('click')"
|
||||
@click="statusWaiting && !statusDone ? undefined : $emit('click')"
|
||||
>
|
||||
<div class="q-px-sm">
|
||||
<q-icon
|
||||
|
|
@ -57,15 +57,15 @@ defineEmits<{
|
|||
--_color: var(--blue-5-hsl);
|
||||
color: var(--foreground);
|
||||
}
|
||||
&.status-color-done {
|
||||
--_color: var(--green-5-hsl);
|
||||
color: var(--foreground);
|
||||
}
|
||||
&.status-color-waiting {
|
||||
&.status-color-waiting:not(.status-color-done) {
|
||||
--_color: var(--gray-4-hsl);
|
||||
color: var(--foreground);
|
||||
cursor: not-allowed !important;
|
||||
}
|
||||
&.status-color-done {
|
||||
--_color: var(--green-5-hsl);
|
||||
color: var(--foreground);
|
||||
}
|
||||
}
|
||||
|
||||
.step-status-active {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue