<!-- 图片上传 -->
<script>
export default {
  name: "ImageUpload",
  props: {
    value: [String, Object, Array],
  },
  data() {
    return {
      fileList: [],
    };
  },
  computed: {},
  methods: {
    afterRead(file) {
      this.$emit("input", this.fileList);
    },
    useDelete(file) {
      this.$emit("input", this.fileList);
    },
  },
  created() {},
};
</script>

<template>
  <div class="upload-image">
    <van-uploader
      v-model="fileList"
      multiple
      preview-size="60px"
      :after-read="afterRead"
      @delete="useDelete"
    />
  </div>
</template>
