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,15 @@
<!-- Child.vue -->
<script setup lang="ts">
const model = defineModel({ type: Number, required: true });
const total = defineModel("total", { type: Number, required: true });
function update() {
model.value++;
}
</script>
<template>
<div>Child model is: {{ model }}</div>
{{ total }}
<q-btn @click="update">Add +</q-btn>
</template>