diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-11 20:21:18 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-12-13 16:59:20 +0100 |
| commit | 2f225a54054ae44df2d8fa691efcf247a82f94a1 (patch) | |
| tree | 004f262d1681fd1ffc5bb9be1adff02bed80bbad /src/BattleRoyaleTab.vue | |
| parent | 33a386d58d8d4e78d9e370b159c286da2a47d6cd (diff) | |
| download | brokentalents-2f225a54054ae44df2d8fa691efcf247a82f94a1.tar.gz brokentalents-2f225a54054ae44df2d8fa691efcf247a82f94a1.zip | |
refactor: create ReportService, move tabs to component
Diffstat (limited to 'src/BattleRoyaleTab.vue')
| -rw-r--r-- | src/BattleRoyaleTab.vue | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/BattleRoyaleTab.vue b/src/BattleRoyaleTab.vue new file mode 100644 index 0000000..48d8b25 --- /dev/null +++ b/src/BattleRoyaleTab.vue @@ -0,0 +1,26 @@ +<template> + <div> + <h2 class="title is-2">Battle Royale Hero Statistics</h2> + <report-table :report="report" :totalPicks="totalPicks"></report-table> + </div> +</template> + +<script> +import Vue from 'vue'; +import ReportTable from './ReportTable.vue'; + +export default Vue.component('battle-royale-tab', { + props: [ 'reportService' ], + data: function() { + return { + report: this.reportService.getReport('casual_aral'), + totalPicks: this.reportService.getTotalPicks('casual_aral'), + }; + }, + computed: { + }, + components: { + ReportTable, + }, +}); +</script> |
