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;
|
hidePagination?: boolean;
|
||||||
inTable?: boolean;
|
inTable?: boolean;
|
||||||
hideView?: boolean;
|
hideView?: boolean;
|
||||||
|
btnSelectedAll?: boolean;
|
||||||
|
|
||||||
imgColumn?: string;
|
imgColumn?: string;
|
||||||
customColumn?: string[];
|
customColumn?: string[];
|
||||||
|
|
@ -58,6 +59,9 @@ defineEmits<{
|
||||||
:style="`background-color: ${inTable ? '#F0FFF1' : 'hsla(var(--info-bg) / 0.07'} `"
|
:style="`background-color: ${inTable ? '#F0FFF1' : 'hsla(var(--info-bg) / 0.07'} `"
|
||||||
:props="props"
|
: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">
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
<span v-if="col.label === 'nameEmployee'">
|
<span v-if="col.label === 'nameEmployee'">
|
||||||
{{ $t('fullname') }}
|
{{ $t('fullname') }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue