<template>
  <div>
    <h1>姐姐</h1>
    <h3>我有个{{ doll }}</h3>
    <button @click="sendDoll">把娃娃给妹妹</button>
  </div>
</template>

<script setup lang="ts" name="Child1">
import { ref } from "vue";
import emitter from '@/utils/emitter.ts';
let doll = ref("芭比娃娃");
function sendDoll() {
    emitter.emit('love',doll.value)
}
</script>
<style lang="scss" scoped></style>
