<template>
  <div>
    <span>点击上传：</span>
    <input type="file" id="file" />
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue';
const emits = defineEmits(["fileChange"])


onMounted(() => {
  $("body").on("change", "#file", function (event) {
    emits("fileChange", event);
  });
})

</script>
