From 65e48f6194e42ba9332ed07f9e92c314ec8dee62 Mon Sep 17 00:00:00 2001 From: pablone Date: Wed, 12 Feb 2025 19:43:45 +0100 Subject: [PATCH] feat: refs #6897 refactor VnColor and EntryList components; update FormModelPopup button visibility --- src/components/FormModelPopup.vue | 27 ++++++----- src/components/VnTable/VnTable.vue | 8 ++-- src/components/common/VnColor.vue | 4 +- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Entry/Card/EntryBuys.vue | 76 +++++++++++++++++++++--------- src/pages/Entry/EntryList.vue | 12 +---- 7 files changed, 79 insertions(+), 50 deletions(-) diff --git a/src/components/FormModelPopup.vue b/src/components/FormModelPopup.vue index 30aaa3513..3ae71a341 100644 --- a/src/components/FormModelPopup.vue +++ b/src/components/FormModelPopup.vue @@ -58,19 +58,6 @@ defineExpose({

{{ subtitle }}

- + { const isDateElement = event.target.closest('.q-date'); const isTimeElement = event.target.closest('.q-time'); + const isQselectDropDown = event.target.closest('.q-select__dropdown-icon'); - if (isDateElement || isTimeElement) return; + if (isDateElement || isTimeElement || isQselectDropDown) return; if (clickedElement === null) { destroyInput(editingRow.value, editingField.value); @@ -411,7 +412,7 @@ async function renderInput(rowId, field, clickedElement) { focusOnMount: true, eventHandlers: { 'update:modelValue': async (value) => { - if (isSelect) { + if (isSelect && value) { row[column.name] = value[column.attrs?.optionValue ?? 'id']; row[column?.name + 'TextValue'] = value[column.attrs?.optionLabel ?? 'name']; @@ -593,6 +594,7 @@ const checkbox = ref(null); @row-click="(_, row) => rowClickFunction && rowClickFunction(row)" @update:selected="emit('update:selected', $event)" @selection="(details) => handleSelection(details, rows)" + :hide-selected-banner="true" >