【element-ui】element-ui upload组件上传图片时怎么把最后的添加按钮隐藏?

问题描述

使用element-ui upload组件上传图片时选择的模式是:list-type="picture-card"
如何能在上传完一张图片后把添加按钮隐藏?

相关代码

    <el-upload

ref="imageUpload"

:action="ossPolicy.host"

accept="image/gif,image/jpeg,image/jpg,image/png"

list-type="picture-card"

:data="ossPolicy"

:limit="1"

:before-upload="beforeUpload"

:on-change="onChange"

:on-error="handleUploadError"

:on-remove="deleteUpload"

:on-success="handleUploadSuccess"

:on-preview="handlePictureCardPreview"

:auto-upload="true">

<i class="el-icon-plus"></i>

</el-upload>

效果

上传前

上传后

回答:

https://github.com/ElemeFE/el...

以上是 【element-ui】element-ui upload组件上传图片时怎么把最后的添加按钮隐藏? 的全部内容, 来源链接: utcz.com/a/152679.html

回到顶部