| | |
| | | <template> |
| | | <div class="zt-upload"> |
| | | <div class="zt-upload" :class="[{'lineHeight':lineHeight}]"> |
| | | <!-- 文件上传 --> |
| | | <el-upload |
| | | ref="upload" |
| | |
| | | } |
| | | }, |
| | | dataForm: Object, |
| | | lineHeight:{ |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | action: { |
| | | type: String, |
| | | default: '/sys/oss/uploadNew' |
| | |
| | | cropData: {}, |
| | | isShowCrop: false, |
| | | uploading: false, |
| | | fileList: this.getUploadList(this.value), |
| | | uploadList: this.getUploadList(this.value), |
| | | fileList: this.getUploadList(this.value) || [], |
| | | uploadList: this.getUploadList(this.value) || [], |
| | | progressFlag: false |
| | | } |
| | | }, |
| | |
| | | .zt-upload { |
| | | line-height: 1; |
| | | } |
| | | |
| | | .zt-upload.lineHeight{ |
| | | line-height: 0; |
| | | } |
| | | .zt .upload-input .upload-btn { |
| | | padding: 8px 12px; |
| | | } |