From c0be47a2e41fb4e354b6f5fedb1c95bb10660fa7 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 26 Nov 2024 11:29:52 +0000 Subject: [PATCH 1/9] style: limit space QCheckbox when is children's QItemSection --- src/css/app.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/css/app.scss b/src/css/app.scss index d4c76ad6b..5f19731d7 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -292,3 +292,7 @@ input::-webkit-inner-spin-button { .no-visible { visibility: hidden; } + +.q-item > .q-item__section > .q-checkbox { + max-width: fit-content; +} From e3fa756b1483c665d2f78fa7f59d615e3678d99a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 26 Nov 2024 11:36:05 +0000 Subject: [PATCH 2/9] style: remove space from checkbox --- src/css/app.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/css/app.scss b/src/css/app.scss index 5f19731d7..86eeb6116 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -293,6 +293,10 @@ input::-webkit-inner-spin-button { visibility: hidden; } -.q-item > .q-item__section > .q-checkbox { - max-width: fit-content; +.q-item > .q-item__section:has(.q-checkbox) { + max-width: min-content; +} + +.row > .column:has(.q-checkbox) { + max-width: min-content; } From 8843318b668534f7407622d5a82044ed8788eba8 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 20 Jan 2025 10:10:45 +0100 Subject: [PATCH 3/9] fix: refs #7936 update select model-value WIP --- src/components/common/VnSelect.vue | 3 +-- src/components/common/VnSelectDialog.vue | 6 ++++- src/pages/InvoiceIn/Card/InvoiceInVat.vue | 32 ++++++++++++++++++----- 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue index b78c99b8a..243f3ece1 100644 --- a/src/components/common/VnSelect.vue +++ b/src/components/common/VnSelect.vue @@ -294,7 +294,7 @@ async function onScroll({ to, direction, from, index }) { } } -defineExpose({ opts: myOptions }); +defineExpose({ opts: myOptions, vnSelectRef }); function handleKeyDown(event) { if (event.key === 'Tab' && !event.shiftKey) { @@ -346,7 +346,6 @@ function getCaption(opt) { :emit-value="nullishToTrue($attrs['emit-value'])" :map-options="nullishToTrue($attrs['map-options'])" :use-input="nullishToTrue($attrs['use-input'])" - :hide-selected="nullishToTrue($attrs['hide-selected'])" :fill-input="nullishToTrue($attrs['fill-input'])" ref="vnSelectRef" lazy-rules diff --git a/src/components/common/VnSelectDialog.vue b/src/components/common/VnSelectDialog.vue index 12322c3fa..a4cd0011d 100644 --- a/src/components/common/VnSelectDialog.vue +++ b/src/components/common/VnSelectDialog.vue @@ -1,5 +1,5 @@