summaryrefslogtreecommitdiff
path: root/src/BattleRoyaleTab.vue
blob: d3c51f2cf3b94b2842585b0a8a179fb73e2035c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<template>
  <div>
    <hero-search-box :reportService="reportService"></hero-search-box>

    <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';
import HeroSearchBox from './HeroSearchBox.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,
    HeroSearchBox,
  },
});
</script>