18 lines
410 B
Vue
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> |