diff --git a/src/components/04_product-service/TotalProductCardComponent.vue b/src/components/04_product-service/TotalProductCardComponent.vue index ba80b404..9b75fed2 100644 --- a/src/components/04_product-service/TotalProductCardComponent.vue +++ b/src/components/04_product-service/TotalProductCardComponent.vue @@ -3,32 +3,47 @@ import { ref } from 'vue'; import AppBox from 'components/app/AppBox.vue'; const addedProduct = ref(false); +import { ProductList } from 'src/stores/product-service/types'; + const baseUrl = ref(import.meta.env.VITE_API_BASE_URL); -defineProps<{ - title?: string; - code?: string; - dense?: boolean; - outlined?: boolean; - readonly?: boolean; - separator?: boolean; - typeProduct?: string; - price?: number; - process?: number; - id?: string; - status?: boolean; -}>(); + +withDefaults( + defineProps<{ + data: ProductList; + title?: string; + + dense?: boolean; + outlined?: boolean; + readonly?: boolean; + separator?: boolean; + typeProduct?: string; + status?: boolean; + + isAddProduct?: boolean; + isSelected?: boolean; + }>(), + { + isSelected: false, + }, +);