upgrade vue 3.2 to 3.4
This commit is contained in:
parent
1f8c166175
commit
9d28a3f03f
5 changed files with 51 additions and 1 deletions
15
src/components/TestUpgrade.vue
Normal file
15
src/components/TestUpgrade.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue