| | |
| | | :on-success="handleSuccess" |
| | | :on-error="handleError" |
| | | :list-type="listType" |
| | | :on-preview="handlePreview" |
| | | :on-remove="handleRemove" |
| | | :headers="getToken()"> |
| | | <div class="upload-btn" :style="{'height':btnHeight,'width':btnWidth}"> |
| | |
| | | // 多选 |
| | | multiple: false, |
| | | // 限制 |
| | | limit: 50, |
| | | limit: 4, |
| | | // 按钮高度 |
| | | btnHeight: '120px', |
| | | // 按钮宽度 |
| | |
| | | }, |
| | | // 移除文件 |
| | | handleRemove(file, fileList){ |
| | | console.log(file,fileList) |
| | | this.$emit('delPictureUrl',{url:file.response.data.url1}); |
| | | } |
| | | }, |
| | | props: { |
| | |
| | | setPictureUrl:{ |
| | | type:Function, |
| | | default:()=>{} |
| | | }, |
| | | delPictureUrl:{ |
| | | type:Function, |
| | | default:()=>{} |
| | | } |
| | | } |
| | | } |