组件路径
组件 index.vue 详情
<template>
<div class="component-upload-image">
<el-upload
:action="uploadImgUrl"
list-type="picture-card"
:on-success="handleUploadSuccess"
:before-upload="handleBeforeUpload"
:on-error="handleUploadError"
name="file"
:on-remove="removeImage"
:show-file-list="true"
:headers="headers"
style="display: inline-block; vertical-align: top"
:file-list="photos"
>
<el-image v-if="!value" :src="value">
<div slot="error" class="image-slot"><i class="el-icon-plus" /><