vue原生input上传文件

<template>
  <div>
    <div v-if="numType">
      <input
        multiple="multiple"
        v-show="false"
        type="file"
        id="sys_upload_file"
        ref="sysUploadFile"
        @change="uploadFileFn($event)"
      />
    </div>
    <div v-else>
      <input
        v-show="false"
        type="file"
        id="sys_upload_file"
        ref="sysUploadFile"
        @change="uploadFileFn($event)"
      />
    </div>
  </div>
</template>

 

posted @ 2020-11-12 14:04  ThisCall  阅读(1624)  评论(0编辑  收藏  举报