<template>
<p>父组件当前的值：{{ number }}</p>
<child @updateCount="updateEmitCount" />

</template>

<script setup>
import { ref } from 'vue';
import child from './child.vue'
const number = ref(10)
const updateEmitCount = (value)=>{
    number.value+=value
}
</script>

<style>

</style>
