You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
674 B
24 lines
674 B
2 months ago
|
import { onMounted, ref, computed, watch, nextTick } from "vue";
|
||
|
|
||
|
const html = (v) => { return v[0] };
|
||
|
|
||
|
export default {
|
||
|
props: ['player', 'id'],
|
||
|
setup(props) {
|
||
|
return { }
|
||
|
},
|
||
|
template: html`
|
||
|
<div class="player element">
|
||
|
<template v-if="player !== undefined">
|
||
|
<img :src="player.img ? player.img : '/assets/img/placeholder_person.png'">
|
||
|
<h2 class="name">{{ player.forename }} {{ player.surname }}</h2>
|
||
|
<h3 class="nickname">{{ player.nickname }}</h3>
|
||
|
</template>
|
||
|
<template v-if="player === undefined">
|
||
|
<h2 class="name">No Player</h2>
|
||
|
<h3 class="nickname"> </h3>
|
||
|
</template>
|
||
|
</div>
|
||
|
`
|
||
|
}
|