From 19eb77089365f497ee73860e21724a2dc93d2f85 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 11 Sep 2024 08:41:16 +0200 Subject: [PATCH] feat: remove cli warnings --- src/components/VnTable/VnTable.vue | 2 +- src/components/common/VnSelectDialog.vue | 1 - src/pages/Customer/Card/CustomerUnpaid.vue | 5 +- .../components/CustomerSamplesCreate.vue | 56 +++++++------------ 4 files changed, 24 insertions(+), 40 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 964dafabe..0ed3de261 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -303,7 +303,7 @@ defineExpose({ CrudModelRef, }); -function handleOnDataSaved(_, res) { +function handleOnDataSaved(_) { if (_.onDataSaved) _.onDataSaved(this); else $props.create.onDataSaved(_); } diff --git a/src/components/common/VnSelectDialog.vue b/src/components/common/VnSelectDialog.vue index 219e6dc98..17f893255 100644 --- a/src/components/common/VnSelectDialog.vue +++ b/src/components/common/VnSelectDialog.vue @@ -28,7 +28,6 @@ const $props = defineProps({ const role = useRole(); const acl = useAcl(); -const showForm = ref(false); const isAllowedToCreate = computed(() => { if ($props.acls.length) return acl.hasAny($props.acls); diff --git a/src/pages/Customer/Card/CustomerUnpaid.vue b/src/pages/Customer/Card/CustomerUnpaid.vue index 5b9a6cde2..ad00cbf59 100644 --- a/src/pages/Customer/Card/CustomerUnpaid.vue +++ b/src/pages/Customer/Card/CustomerUnpaid.vue @@ -151,7 +151,10 @@ watch( clearable type="number" v-model="amount" - /> + autofocus + > + diff --git a/src/pages/Customer/components/CustomerSamplesCreate.vue b/src/pages/Customer/components/CustomerSamplesCreate.vue index c7772ab4e..3c9eb856b 100644 --- a/src/pages/Customer/components/CustomerSamplesCreate.vue +++ b/src/pages/Customer/components/CustomerSamplesCreate.vue @@ -1,5 +1,5 @@