<template>
  <div>
    <h1>Child2</h1>
    <h3>我有{{ flower }}朵花</h3>
    <h2>压岁钱:{{ money }}</h2>
  </div>
</template>

<script setup>
import { ref, reactive, defineExpose} from 'vue';
let flower = ref(100)
let money = ref(200000)
defineExpose({flower,money})
</script>
<style lang='scss' scoped>

</style>