refactor: Color display conditions

This commit is contained in:
Net 2024-08-20 17:49:18 +07:00
parent 2f5a03969a
commit 921faed0c4

View file

@ -13,6 +13,7 @@ const prop = withDefaults(
listEmployee: any[];
columnsEmployee: any[];
fieldSelected?: string[];
inTable?: boolean;
}>(),
{
gridView: false,
@ -47,7 +48,7 @@ const prop = withDefaults(
>
<template v-slot:header="props">
<q-tr
style="background-color: hsla(var(--info-bg) / 0.07)"
:style="`background-color: ${inTable ? '#F0FFF1' : 'hsla(var(--info-bg) / 0.07'} `"
:props="props"
>
<q-th v-for="col in props.cols" :key="col.name" :props="props">