element-ui 的 upload组件的clearFiles方法调用方法

<template>
  <div>
    <el-button @click="clearUploadedImage">重新上传</el-button>
    <el-upload ref="upload"></el-upload>
  </div>
</template>

<script>
export default {
  methods: {
    clearUploadedImage () {
      this.$refs.upload.clearFiles();
    }
  }
}
</script>

 

posted @ 2017-04-27 11:45  无情码字员  阅读(25448)  评论(0编辑  收藏  举报