Selector/Selector.Web/scripts/Past/CountCard.ts
2022-11-19 11:47:23 +00:00

23 lines
450 B
TypeScript

import * as Vue from "vue";
export let CountCard: Vue.Component = {
props: ['count'],
computed: {
formattedCount() {
if(this.count != null)
{
return this.count.toLocaleString()
}
else
{
return '0';
}
}
},
template:
`
<div class="card">
<h2>{{ formattedCount }}</h2>
</div>
`
}