refactor: Color display conditions
This commit is contained in:
parent
2f5a03969a
commit
921faed0c4
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ const prop = withDefaults(
|
||||||
listEmployee: any[];
|
listEmployee: any[];
|
||||||
columnsEmployee: any[];
|
columnsEmployee: any[];
|
||||||
fieldSelected?: string[];
|
fieldSelected?: string[];
|
||||||
|
inTable?: boolean;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
gridView: false,
|
gridView: false,
|
||||||
|
|
@ -47,7 +48,7 @@ const prop = withDefaults(
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr
|
<q-tr
|
||||||
style="background-color: hsla(var(--info-bg) / 0.07)"
|
:style="`background-color: ${inTable ? '#F0FFF1' : 'hsla(var(--info-bg) / 0.07'} `"
|
||||||
:props="props"
|
:props="props"
|
||||||
>
|
>
|
||||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue