summaryrefslogtreecommitdiff
path: root/src/ReportTable.vue
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-05-11 19:38:03 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-12-13 16:59:20 +0100
commit33a386d58d8d4e78d9e370b159c286da2a47d6cd (patch)
tree04f80d98289bd5e661a6ee35b8b959602249e94c /src/ReportTable.vue
parent76c494dc87f8fe703ab48ae57c98dbbbd78c4c2d (diff)
downloadbrokentalents-33a386d58d8d4e78d9e370b159c286da2a47d6cd.tar.gz
brokentalents-33a386d58d8d4e78d9e370b159c286da2a47d6cd.zip
improve formatting
Diffstat (limited to 'src/ReportTable.vue')
-rw-r--r--src/ReportTable.vue46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/ReportTable.vue b/src/ReportTable.vue
index 8550939..00ef643 100644
--- a/src/ReportTable.vue
+++ b/src/ReportTable.vue
@@ -3,33 +3,33 @@
<b-table :data="report"
:default-sort="['Count', 'desc']"
:default-sort-directon="'desc'">
- <template slot-scope="props">
- <b-table-column field="Actor" label="Hero" sortable>
- {{ props.row.Actor.substring(1, props.row.Actor.length - 1) }}
- </b-table-column>
+ <template slot-scope="props">
+ <b-table-column field="Actor" label="Hero" sortable>
+ {{ props.row.Actor.substring(1, props.row.Actor.length - 1) }}
+ </b-table-column>
- <b-table-column field="Talent" label="Talent">
- {{ getTalentName(props.row.Talent) }}
- </b-table-column>
+ <b-table-column field="Talent" label="Talent">
+ {{ getTalentName(props.row.Talent) }}
+ </b-table-column>
- <b-table-column field="Level" label="Average Level" sortable numeric>
- <template v-if="!!props.row.Level">
- {{ props.row.Level.toFixed(2) }}
- </template>
- </b-table-column>
+ <b-table-column field="Level" label="Average Level" sortable numeric>
+ <template v-if="!!props.row.Level">
+ {{ props.row.Level.toFixed(2) }}
+ </template>
+ </b-table-column>
- <b-table-column field="Winner" label="Win Rate" sortable numeric>
- <template v-if="!!props.row.Winner">
- {{ (100 * props.row.Winner).toFixed(2) }}%
- </template>
- </b-table-column>
+ <b-table-column field="Winner" label="Win Rate" sortable numeric>
+ <template v-if="!!props.row.Winner">
+ {{ (100 * props.row.Winner).toFixed(2) }}%
+ </template>
+ </b-table-column>
- <b-table-column field="Count" label="Pick Rate" sortable numeric>
- <template v-if="!!props.row.Count">
- {{ (100 * 6 * props.row.Count / totalPicks).toFixed(2) }}%
- </template>
- </b-table-column>
- </template>
+ <b-table-column field="Count" label="Pick Rate" sortable numeric>
+ <template v-if="!!props.row.Count">
+ {{ (100 * 6 * props.row.Count / totalPicks).toFixed(2) }}%
+ </template>
+ </b-table-column>
+ </template>
</b-table>
</section>
</template>