refactor: Add display conditions
This commit is contained in:
parent
f2cb7fcd5a
commit
98b2501ea7
1 changed files with 4 additions and 0 deletions
|
|
@ -52,6 +52,10 @@ const prop = withDefaults(
|
||||||
: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">
|
||||||
|
<span v-if="col.label === 'nameEmployee'">
|
||||||
|
{{ $t('fullname') }}
|
||||||
|
</span>
|
||||||
|
|
||||||
<span v-if="col.label !== ''">
|
<span v-if="col.label !== ''">
|
||||||
{{ $t(col.label) }}
|
{{ $t(col.label) }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue