<template>
  <div class="upload-container">
    <vab-upload
      ref="vabUpload"
      :limit="50"
      name="file"
      :size="2"
      url="/upload"
    />
    <el-button type="primary" @click="handleShow()">
      {{ __('模拟上传') }}
    </el-button>
  </div>
</template>

<script>
  import VabUpload from '@/extra/VabUpload'

  export default {
    name: 'Upload',
    components: {
      VabUpload,
    },
    data() {
      return {}
    },
    methods: {
      handleShow() {
        this.$refs['vabUpload'].handleShow()
      },
    },
  }
</script>
