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