0
0
Fork 0

Se agrega condicional para mostrar checkbox

This commit is contained in:
carlosfonseca 2023-11-28 08:51:55 -05:00
parent cc79d699f6
commit f002fd2a98
2 changed files with 3 additions and 0 deletions

View File

@ -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)"
/>

View File

@ -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)"