From 2d08e55c857d60c9c110c76f5c934859e516889a Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Tue, 28 Nov 2023 08:11:32 -0500 Subject: [PATCH] Se mejora logica de descarga csv --- src/components/ui/CardList2.vue | 11 ++++++++++- src/pages/InvoiceOut/InvoiceOutList.vue | 25 ++++++++++++++++++++----- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/components/ui/CardList2.vue b/src/components/ui/CardList2.vue index f93a311c4..aebcb10da 100644 --- a/src/components/ui/CardList2.vue +++ b/src/components/ui/CardList2.vue @@ -2,6 +2,8 @@ import { ref, watch } from 'vue'; const $props = defineProps({ + addElement: { type: Function, required: true }, + element: { type: Object, default: null }, id: { type: Number, default: null }, isSelected: { type: Boolean, default: false }, title: { type: String, default: null }, @@ -14,6 +16,10 @@ watch( checkSelect.value = value; } ); + +const selectedItem = (item) => { + $props.addElement(item); +};