refactor: add selectedAll
This commit is contained in:
parent
06fb5b7c61
commit
2ffb49474d
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ const props = withDefaults(
|
|||
hidePagination?: boolean;
|
||||
inTable?: boolean;
|
||||
hideView?: boolean;
|
||||
btnSelectedAll?: boolean;
|
||||
|
||||
imgColumn?: string;
|
||||
customColumn?: string[];
|
||||
|
|
@ -58,6 +59,9 @@ defineEmits<{
|
|||
:style="`background-color: ${inTable ? '#F0FFF1' : 'hsla(var(--info-bg) / 0.07'} `"
|
||||
:props="props"
|
||||
>
|
||||
<q-th auto-width v-if="!!btnSelectedAll">
|
||||
<q-checkbox v-model="props.selected" />
|
||||
</q-th>
|
||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<span v-if="col.label === 'nameEmployee'">
|
||||
{{ $t('fullname') }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue