forked from verdnatura/salix-front
Merge pull request 'Se agrega condicional para mostrar checkbox' (#16) from features/ms_32_descargar_csv_3 into dev
Reviewed-on: hyervoni/salix-front-mindshore#16
This commit is contained in:
commit
a871d98f1c
|
@ -7,6 +7,7 @@ const $props = defineProps({
|
|||
id: { type: Number, default: null },
|
||||
isSelected: { type: Boolean, default: false },
|
||||
title: { type: String, default: null },
|
||||
showCheckbox: { type: Boolean, default: false },
|
||||
});
|
||||
const checkSelect = ref(false);
|
||||
|
||||
|
@ -36,6 +37,7 @@ const selectedItem = (item) => {
|
|||
</QChip>
|
||||
</div>
|
||||
<QCheckbox
|
||||
v-if="showCheckbox"
|
||||
v-model="checkSelect"
|
||||
@click="selectedItem($props.element)"
|
||||
/>
|
||||
|
|
|
@ -176,6 +176,7 @@ const downloadCsv = (rows) => {
|
|||
:element="row"
|
||||
:id="row.id"
|
||||
:isSelected="manageCheckboxes"
|
||||
:showCheckbox="true"
|
||||
:key="row.id"
|
||||
:title="row.ref"
|
||||
@click="navigate(row.id)"
|
||||
|
|
Loading…
Reference in New Issue