From: https: //github.com/ElemeFE/element/issues/3367#issuecomment-376402380 invasion deleted
el-upload which bind a placeholder class:
:class="{hide:hideUpload}"
Initial value data which:
hideUpload: false,
limitCount:1
onChange inside (add files, upload success and failure will be uploaded called that):
this.hideUpload = fileList.length >= this.limitCount;
handleRemove inside (the deleted file is called):
this.hideUpload = fileList.length >= this.limitCount;
style, remove the scoped (or style files introduced externally, the main purpose is to modify the element-ui own style)
<style>
.hide .el-upload--picture-card { display: none; } </style>
From: https: //github.com/ElemeFE/element/issues/3367#issuecomment-376402380 invasion deleted
el-upload which bind a placeholder class:
:class="{hide:hideUpload}"
Initial value data which:
hideUpload: false,
limitCount:1
onChange inside (add files, upload success and failure will be uploaded called that):
this.hideUpload = fileList.length >= this.limitCount;
handleRemove inside (the deleted file is called):
this.hideUpload = fileList.length >= this.limitCount;
style, remove the scoped (or style files introduced externally, the main purpose is to modify the element-ui own style)
<style>
.hide .el-upload--picture-card { display: none; } </style>