Files
front/components/PlayerList.vue
T
2024-04-20 15:04:32 +02:00

18 lines
410 B
Vue

<script setup lang="ts">
export interface Props {
players?: string[]
current_team?: string
}
const props = withDefaults(defineProps<Props>(), {
players: () => [],
})
const players = useState<{ [key: string]: any }>('players')
</script>
<template>
<div v-for="player in props.players">
<PlayerSlot :player="players[player]" :current_team="props.current_team" />
</div>
</template>