refactor: workflow => table row color
This commit is contained in:
parent
72adf220a8
commit
4a539fa7e4
1 changed files with 15 additions and 1 deletions
|
|
@ -422,7 +422,21 @@ watch(() => pageState.inputSearch, fetchWorkflowList);
|
|||
</template>
|
||||
|
||||
<template #body="props">
|
||||
<q-tr>
|
||||
<q-tr
|
||||
:class="{
|
||||
'app-text-muted': props.row.status === 'INACTIVE',
|
||||
'status-active': props.row.status !== 'INACTIVE',
|
||||
'status-inactive': props.row.status === 'INACTIVE',
|
||||
}"
|
||||
:props="props"
|
||||
:style="
|
||||
props.rowIndex % 2 !== 0
|
||||
? $q.dark.isActive
|
||||
? 'background: hsl(var(--gray-11-hsl)/0.2)'
|
||||
: `background: #f9fafc`
|
||||
: ''
|
||||
"
|
||||
>
|
||||
<q-td class="text-center">{{ props.rowIndex + 1 }}</q-td>
|
||||
<q-td>{{ props.row.name }}</q-td>
|
||||
<q-td class="text-right">{{ props.row.step.length }}</q-td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue