<template>
  <el-upload
    class="upload-demo"
    action="https://jsonplaceholder.typicode.com/posts/"
    :on-preview="handlePreview"
    :on-remove="handleRemove"
    :before-remove="beforeRemove"
    multiple
  >
    <el-button size="small" type="primary">导入Execl</el-button>
  </el-upload>
</template>

<script>
export default {
  name: "inStock",
  props: {
    uploadExcelVisible: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {
      uploadVisible: false,
    };
  },
  created() {},
  methods: {},
  watch: {
    uploadExcelVisible() {
      this.uploadVisible = this.uploadExcelVisible;
    },
  },
};
</script>
