WIP: refs #6416 - refactor-InvoiceIn #196

Closed
jsegarra wants to merge 17 commits from 6416-refactor-InvoiceIn into dev
1 changed files with 8 additions and 2 deletions
Showing only changes of commit 5e50fe3ac1 - Show all commits

View File

@ -4,6 +4,8 @@ import { useI18n } from 'vue-i18n';
const $props = defineProps({
columns: { type: Object, require: true, default: null },
rows: { type: Object, require: true, default: null },
hasSummary: { type: Boolean, require: true, default: false },
summary: { type: Object, require: true, default: null },
});
const { t } = useI18n();
</script>
@ -16,8 +18,12 @@ const { t } = useI18n();
</QTh>
</QTr>
</template>
<template #bottom-row>
<slot name="bottom-row"></slot>
<template #bottom-row v-if="hasSummary">
<QTr class="bg">
<QTd v-for="col in $props.columns" :key="col.name" :props="props">{{
$props.summary[col.name]
}}</QTd>
</QTr>
</template>
</QTable>
</template>