From 441876d53ed4491c209d24b6669d16fd779c2009 Mon Sep 17 00:00:00 2001 From: pablone Date: Fri, 16 May 2025 12:59:24 +0200 Subject: [PATCH 1/3] fix: remove unnecessary blank line in VnColumn.vue --- src/components/VnTable/VnColumn.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/VnTable/VnColumn.vue b/src/components/VnTable/VnColumn.vue index b6cc5665f..05c764d73 100644 --- a/src/components/VnTable/VnColumn.vue +++ b/src/components/VnTable/VnColumn.vue @@ -180,10 +180,10 @@ const col = computed(() => { ) newColumn.component = 'checkbox'; if ($props.default && !newColumn.component) newColumn.component = $props.default; - + if (typeof newColumn.component !== 'string') { - newColumn.attrs = { ...newColumn.component.attrs, autofocus: $props.autofocus }; - newColumn.event = { ...newColumn.component.event, ...$props?.eventHandlers }; + newColumn.attrs = { ...newColumn.component?.attrs, autofocus: $props.autofocus }; + newColumn.event = { ...newColumn.component?.event, ...$props?.eventHandlers }; } return newColumn; }); From 8f01bfdcb3a7f819158816baf3e816f4f4b23c95 Mon Sep 17 00:00:00 2001 From: jon Date: Sun, 18 May 2025 14:43:15 +0200 Subject: [PATCH 2/3] feat: refs #8944 dev to test changes to match back --- src/components/FormModel.vue | 8 ++- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Item/ItemFixedPrice.vue | 43 ++++++++++-- src/pages/Item/ItemFixedPriceFilter.vue | 69 +++++++++++-------- .../Item/components/EditFixedPriceForm.vue | 21 ++++-- 6 files changed, 101 insertions(+), 42 deletions(-) diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index 43a0d63f0..29f5f1a5a 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -102,6 +102,10 @@ const $props = defineProps({ type: Boolean, default: false, }, + customMethod: { + type: String, + default: null, + }, }); const emit = defineEmits(['onFetch', 'onDataSaved', 'submit']); const modelValue = computed( @@ -237,7 +241,9 @@ async function save() { const url = $props.urlCreate || $props.urlUpdate || $props.url || arrayData.store.url; const response = await Promise.resolve( - $props.saveFn ? $props.saveFn(body) : axios[method](url, body), + $props.saveFn + ? $props.saveFn(body) + : axios[$props.customMethod ?? method](url, body), ); if ($props.urlCreate) notify('globals.dataCreated', 'positive'); diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 581e57bde..8eda15537 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -896,6 +896,7 @@ components: rate3: Packing price minPrice: Min. Price itemFk: Item id + date: Date userPanel: copyToken: Token copied to clipboard settings: Settings diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index e5afdcda3..2a8f0ed23 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -980,6 +980,7 @@ components: rate3: Precio packing minPrice: Precio mínimo itemFk: Id item + date: Fecha userPanel: copyToken: Token copiado al portapapeles settings: Configuración diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index eb156ce9f..fa7364442 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -1,9 +1,11 @@