load players

This commit is contained in:
2024-04-05 23:08:47 +02:00
parent 05d711644d
commit 638895f0bc
3 changed files with 62 additions and 7 deletions
+16 -2
View File
@@ -1,9 +1,23 @@
<script setup lang="ts">
const props = defineProps(['data'])
const cards = useState<{ [key: string]: any }>('cards')
function cardClick() {
console.log(JSON.parse(JSON.stringify(cards.value[props.data].effects)))
}
</script>
<template>
{{ cards[props.data].name }}
<span @click="cardClick">
{{ cards[props.data].name }}
</span>
|
</template>
</template>
<style scoped>
span {
border: 1px solid black;
cursor: pointer
}
</style>