From 2af3098926d5adc276453bfba746abe25069ce31 Mon Sep 17 00:00:00 2001 From: emi Date: Mon, 13 Jul 2020 01:39:29 -0600 Subject: [PATCH] Update DataPage, pass tab count to renderTab method --- src/components/DataPage.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/DataPage.vue b/src/components/DataPage.vue index 4ccca811..74a4fee5 100644 --- a/src/components/DataPage.vue +++ b/src/components/DataPage.vue @@ -229,7 +229,9 @@ export default { }, renderTab (tab) { const render = tab.render - if (typeof render === 'function') return render(this.data) + const { name } = tab + const { data, tabsTotals } = this + if (typeof render === 'function') return render(data, tabsTotals[name]) return (undefined === render) ? true : render }, onRouteChange (to, from) {