Skip to content

Commit

Permalink
Update DataPage, pass tab count to renderTab method
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliorizzo committed Jul 13, 2020
1 parent 3e0a406 commit 2af3098
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/DataPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2af3098

Please sign in to comment.