upgrade vue 3.2 to 3.4

This commit is contained in:
Warunee Tamkoo 2024-01-24 16:51:53 +07:00
parent 1f8c166175
commit 9d28a3f03f
5 changed files with 51 additions and 1 deletions

View file

@ -0,0 +1,23 @@
<script setup lang="ts">
import Child from "@/components/TestUpgrade.vue";
import { ref } from "vue";
const count = ref<number>(0);
const total = ref<number>(0);
</script>
<template>
<q-card class="q-pa-md">
<!-- Parent.vue -->
<div class="q-mb-md">
<div>Parent count is: {{ count }}</div>
<q-btn @click="count = 0">Reset count</q-btn>
</div>
<q-separator />
<div class="q-mb-md">
<Child v-model="count" v-model:total="total" />
</div>
</q-card>
</template>