1、上传效果(含添加和删除设计图):
达到上传上限,隐藏上传图标,删除后,数量小于上限会自动显示。
2、html代码
//使用前,要在JS中先把组件引入并挂载
import updatefile from "../common/uploadfile";
components: { updatefile },
//使用
<updatefile :multiple="true" :max=6 :list="imgList" ref="upload"></updatefile>
//multiple:是否支持多选
//max:最多上传几张
//list:编辑反显使用
4、组件updatefile.vue代码(使用了mint-ui提示 和less预处理器)
<template>
<div>
<div class&#