<template>
  <div>
    <h1>子级</h1>
    <button @click="emits('money')">给父亲一百元</button>
  </div>
</template>

<script lang="ts" setup>
import {ref,reactive,defineEmits} from "vue" 
 const emits = defineEmits('money')
</script>

<style lang="scss" scoped>
</style>
