fix(upload): button will disappear when count meets limitation (#2884)

pull/2900/head
John60676 2020-09-23 10:33:02 +08:00 committed by GitHub
parent 7ea8de4b7e
commit f942d5b1a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ export default {
}
const uploadButton = (
<div class={uploadButtonCls} style={children ? undefined : { display: 'none' }}>
<div class={uploadButtonCls} style={children.length ? undefined : { display: 'none' }}>
<VcUpload {...vcUploadProps}>{children}</VcUpload>
</div>
);