diff --git a/package.json b/package.json index ead0193c9..eaaa0b812 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-front", - "version": "24.40.0", + "version": "24.42.0", "description": "Salix frontend", "productName": "Salix", "author": "Verdnatura", diff --git a/src/components/CrudModel.vue b/src/components/CrudModel.vue index 0386e037b..a4cb55a2c 100644 --- a/src/components/CrudModel.vue +++ b/src/components/CrudModel.vue @@ -234,6 +234,8 @@ async function remove(data) { newData = newData.filter((form) => !ids.some((id) => id == form[pk])); fetch(newData); }); + } else { + reset(); } emit('update:selected', []); } diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index a3b64d264..26f353d75 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -53,6 +53,10 @@ const $props = defineProps({ type: Boolean, default: true, }, + bottom: { + type: Object, + default: null, + }, cardClass: { type: String, default: 'flex-one', @@ -102,6 +106,10 @@ const $props = defineProps({ type: Boolean, default: false, }, + disabledAttr: { + type: Boolean, + default: false, + }, }); const { t } = useI18n(); const stateStore = useStateStore(); @@ -420,7 +428,7 @@ function handleOnDataSaved(_) { @@ -507,8 +515,12 @@ function handleOnDataSaved(_) { :key="index" :title="btn.title" :icon="btn.icon" - class="q-px-sm text-primary-light" + class="q-pa-xs" flat + dense + :class=" + btn.isPrimary ? 'text-primary-light' : 'color-vn-text ' + " :style="`visibility: ${ (btn.show && btn.show(row)) ?? true ? 'visible' : 'hidden' }`" @@ -516,6 +528,29 @@ function handleOnDataSaved(_) { /> + @@ -767,10 +794,16 @@ es: } } -.q-table th { - padding: 0; -} +.q-table { + th { + padding: 0; + } + &__top { + padding: 12px 0px; + top: 0; + } +} .vnTable { thead tr th { position: sticky; @@ -851,4 +884,13 @@ es: cursor: text; user-select: all; } + +.full-width-slot { + width: 100%; + display: flex; + text-align: center; + color: var(--vn-text-color); + margin-bottom: -1%; + background-color: var(--vn-header-color); +} diff --git a/src/components/VnTable/VnVisibleColumn.vue b/src/components/VnTable/VnVisibleColumn.vue index 36f5ed7de..f5c3458cd 100644 --- a/src/components/VnTable/VnVisibleColumn.vue +++ b/src/components/VnTable/VnVisibleColumn.vue @@ -135,7 +135,7 @@ onMounted(async () => { });