2022-08-08 17:24:18 +00:00
|
|
|
<template>
|
|
|
|
<div class="player-list">
|
|
|
|
<div v-for="player in players" :key="player.id">
|
2022-09-02 20:13:26 +00:00
|
|
|
<Player :player="player" :show-score="showScore" :show-checkbox="showCheckbox" :checked="round.selections[player.id as any]" />
|
2022-08-08 17:24:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2022-08-31 08:57:25 +00:00
|
|
|
import { usePlayersStore } from '@/stores/PlayersStore'
|
|
|
|
import { useRoundStore } from '@/stores/RoundStore'
|
2022-08-08 17:24:18 +00:00
|
|
|
|
|
|
|
defineProps<{
|
2022-08-31 08:57:25 +00:00
|
|
|
showScore?: boolean,
|
|
|
|
showCheckbox?: boolean,
|
2022-08-08 17:24:18 +00:00
|
|
|
}>()
|
2022-08-31 08:57:25 +00:00
|
|
|
|
|
|
|
const players = usePlayersStore().players
|
|
|
|
const round = useRoundStore().round
|
2022-08-08 17:24:18 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '~/assets/css/components';
|
|
|
|
|
|
|
|
.player-list {
|
|
|
|
padding: 8px;
|
|
|
|
border: $box-primary-border;
|
|
|
|
border-radius: 10px;
|
|
|
|
background-color: $box-primary-background-color;
|
|
|
|
}
|
|
|
|
</style>
|