2019-11-04 19:30:56 +00:00
|
|
|
<template>
|
|
|
|
|
<div :class="allyTeam ? 'text-left' : 'text-right'">
|
|
|
|
|
<div v-if="team.bans">
|
2020-02-13 19:16:13 +00:00
|
|
|
<Tooltip
|
2019-11-04 19:30:56 +00:00
|
|
|
v-for="ban in team.bans"
|
|
|
|
|
:key="'ban-' + ban.pickTurn"
|
2019-11-29 17:09:35 +00:00
|
|
|
:class="{'ml-2': ban.pickTurn !== 6 && ban.pickTurn !== 1}"
|
|
|
|
|
class="inline-block"
|
2019-11-04 19:30:56 +00:00
|
|
|
>
|
2019-11-29 17:09:35 +00:00
|
|
|
<template v-slot:trigger>
|
|
|
|
|
<div
|
|
|
|
|
:class="[allyTeam ? 'ban-blue border-teal-500' : 'ban-red border-red-500']"
|
2020-06-11 18:55:39 +00:00
|
|
|
class="relative border-2 rounded-full cursor-pointer ban"
|
2019-11-29 17:09:35 +00:00
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
:style="[ban.champion.id ? {backgroundImage: `url('${ban.champion.icon}')`} : '']"
|
2020-06-11 18:55:39 +00:00
|
|
|
class="w-6 h-6 bg-center bg-cover rounded-full ban-img bg-blue-1000"
|
2019-11-29 17:09:35 +00:00
|
|
|
></div>
|
|
|
|
|
<div
|
|
|
|
|
:class="[textLightColor, bgColor]"
|
2020-06-11 18:55:39 +00:00
|
|
|
class="absolute flex items-center justify-center w-4 h-4 text-xs font-bold rounded-full ban-order"
|
2019-11-29 17:09:35 +00:00
|
|
|
>{{ ban.pickTurn }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:default>
|
2020-06-11 18:55:39 +00:00
|
|
|
<div class="px-2 text-xs leading-tight text-center text-white select-none">
|
2019-12-02 17:39:10 +00:00
|
|
|
<div>{{ ban.champion.id ? ban.champion.name : 'No ban' }}</div>
|
2019-11-29 17:09:35 +00:00
|
|
|
</div>
|
|
|
|
|
</template>
|
2020-02-13 19:16:13 +00:00
|
|
|
</Tooltip>
|
2019-11-04 19:30:56 +00:00
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
:class="allyTeam ? 'text-left' : 'text-right flex-row-reverse'"
|
2020-06-11 18:55:39 +00:00
|
|
|
class="flex mt-2 leading-tight"
|
2019-11-04 19:30:56 +00:00
|
|
|
>
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
:class="textColor"
|
2020-08-22 13:11:25 +00:00
|
|
|
class="text-sm font-medium"
|
2019-11-04 19:30:56 +00:00
|
|
|
>{{ `${team.teamStats.kills}/${team.teamStats.deaths}/${team.teamStats.assists}` }}</div>
|
2020-08-22 16:18:40 +00:00
|
|
|
<div class="text-xs text-white">K / D / A</div>
|
2019-11-04 19:30:56 +00:00
|
|
|
</div>
|
|
|
|
|
<div :class="allyTeam ? 'ml-3' : 'mr-3'">
|
|
|
|
|
<div
|
|
|
|
|
:class="textColor"
|
2020-08-22 13:11:25 +00:00
|
|
|
class="text-sm font-medium"
|
2019-11-25 18:14:53 +00:00
|
|
|
>{{ +(team.teamStats.gold / 1000).toFixed(1) + 'k' }}</div>
|
2020-08-22 16:18:40 +00:00
|
|
|
<div class="text-xs text-white">Gold</div>
|
2019-11-04 19:30:56 +00:00
|
|
|
</div>
|
|
|
|
|
<div :class="allyTeam ? 'ml-3' : 'mr-3'">
|
|
|
|
|
<div
|
|
|
|
|
:class="textColor"
|
2020-08-22 13:11:25 +00:00
|
|
|
class="text-sm font-medium"
|
2019-11-25 18:14:53 +00:00
|
|
|
>{{ +(team.teamStats.dmgChamp / 1000).toFixed(1) + 'k' }}</div>
|
2020-08-22 16:18:40 +00:00
|
|
|
<div class="text-xs text-white">Dmg</div>
|
2019-11-04 19:30:56 +00:00
|
|
|
</div>
|
|
|
|
|
<div :class="allyTeam ? 'ml-3' : 'mr-3'" class="flex flex-col justify-end">
|
2020-08-22 13:11:25 +00:00
|
|
|
<div class="text-sm font-medium text-teal-400"></div>
|
2020-06-11 18:55:39 +00:00
|
|
|
<div class="flex text-xs text-white">
|
2019-11-04 19:30:56 +00:00
|
|
|
<div :class="allyTeam ? '' : 'mr-2'">
|
2020-08-22 16:18:40 +00:00
|
|
|
<span :class="textColor">{{ team.towers }}</span> Towers
|
2019-11-04 19:30:56 +00:00
|
|
|
</div>
|
|
|
|
|
<div :class="allyTeam ? 'ml-2' : 'mr-2'">
|
2020-08-22 16:18:40 +00:00
|
|
|
<span :class="textColor">{{ team.dragons }}</span> Dragons
|
2019-11-04 19:30:56 +00:00
|
|
|
</div>
|
|
|
|
|
<div :class="allyTeam ? 'ml-2' : ''">
|
2020-08-22 16:18:40 +00:00
|
|
|
<span :class="textColor">{{ team.barons }}</span> Barons
|
2019-11-04 19:30:56 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2020-02-13 19:16:13 +00:00
|
|
|
import Tooltip from '@/components/Common/Tooltip.vue'
|
2019-11-29 17:09:35 +00:00
|
|
|
|
2019-11-04 19:30:56 +00:00
|
|
|
export default {
|
2019-11-29 17:09:35 +00:00
|
|
|
components: {
|
2020-02-13 19:16:13 +00:00
|
|
|
Tooltip,
|
2019-11-29 17:09:35 +00:00
|
|
|
},
|
|
|
|
|
|
2019-11-04 19:30:56 +00:00
|
|
|
props: {
|
|
|
|
|
team: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
allyTeam: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
textLightColor() {
|
|
|
|
|
return this.allyTeam ? 'text-teal-100' : 'text-red-100'
|
|
|
|
|
},
|
|
|
|
|
textColor() {
|
|
|
|
|
return this.allyTeam ? 'text-teal-400' : 'text-red-400'
|
|
|
|
|
},
|
|
|
|
|
bgColor() {
|
|
|
|
|
return this.allyTeam ? 'bg-teal-500' : 'bg-red-500'
|
2019-11-25 20:15:52 +00:00
|
|
|
}
|
2019-11-04 19:30:56 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|