vue element-ui Upload 上传文件图片再次封装

1、添加组件名UploadFile





2、使用




import UploadFile from '../../components/Upload/UploadFile'

components: { UploadFile },

data(){

return{

fileList:[
  {
    "url": "https://worker.doggadatachina.com/base/fus/files/uAGsD6BOyIIOz0qp0471K7cJ.png",
    "contentType": "image/png",
    "name": "1540519646.png"
  },
  {
    "url": "https://worker.doggadatachina.com/base/fus/files/JRsy1aG_InecWyRnlHrIzjWx.png",
    "contentType": "image/png",
    "name": "a.png"
  },
  {
    "url": "https://worker.doggadatachina.com/base/fus/files/LieNSN4RlhmIaJzzjUnwMgub.png",
    "contentType": "image/png",
    "name": "aaaa.png"
  },
  {
    "url": "https://worker.doggadatachina.com/base/fus/files/J8EwlmKKMfoyjDYCT-A3oGUQ.jpg",
    "contentType": "image/jpeg",
    "name": "ac59c0bfdae840cc.jpg"
  }
]

}

}


 

vue element-ui Upload 上传文件图片再次封装_第1张图片

 

你可能感兴趣的:(vue,element-ui)