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