Fix reactive with new system

This commit is contained in:
2024-04-25 20:36:32 +02:00
parent 56cbe9bab4
commit 5f4df966c4
14 changed files with 577 additions and 228 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
<script setup lang="ts">
import type { Card } from '~/netcode/Card';
export interface Props {
stack: string[]
stack: (Card | null)[]
}
const props = withDefaults(defineProps<Props>(), {
@@ -16,7 +18,7 @@ const wrapped = ref(false)
<input type="checkbox" v-model="wrapped" />
<div class="cards_container">
<CardPreview v-if="!wrapped" :data="props.stack.at(-1)">
<CardPreview v-if="!wrapped" :data="props.stack.at(-1) ?? null">
<slot></slot>
</CardPreview>