From 65626446fd3b3ecf4969149609a1e2486bed7f94 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 9 Apr 2024 13:01:29 +0200 Subject: [PATCH] refactor: refs #7186 fixed style and tab --- src/pages/InvoiceIn/Card/InvoiceInVat.vue | 38 ++++++++++++++++++----- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue index 3eb9365d2..fa0ad12db 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue @@ -32,6 +32,13 @@ const invoiceInFormRef = ref(); const expensesRef = ref(); const newExpenseRef = ref(); +const $props = defineProps({ + actionIcon: { + type: String, + default: 'add', + }, +}); + const columns = computed(() => [ { name: 'expense', @@ -94,6 +101,11 @@ const columns = computed(() => [ field: (row) => row.foreignValue, align: 'left', }, + { + get() { + return $props.actionIcon; + }, + } ]); const filter = { @@ -207,17 +219,19 @@ async function addExpense() { @click.stop="value = null" class="cursor-pointer" /> - {{ t('Create expense') }} - + @@ -470,6 +484,16 @@ async function addExpense() { .q-item { min-height: 0; } +.default-icon { + cursor: pointer; + color: $primary; + border-radius: 50px; + + &.--add-icon { + color: var(--vn-text-color); + background-color: $primary; + } +} es: