fix: Adding ant-upload-btn class to the upload component (#1742)

* adding ant-upload-btn class

* fix: update tests

* fix: apply ant-upload-btn to dragging uploads only
pull/1680/head
Zhixing Zhang 2020-02-01 06:32:39 -05:00 committed by GitHub
parent e264a169b0
commit 2a304e0fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ export default {
onDragover={this.onFileDrop}
onDragleave={this.onFileDrop}
>
<VcUpload {...vcUploadProps}>
<VcUpload {...vcUploadProps} class={`${prefixCls}-btn`}>
<div class={`${prefixCls}-drag-container`}>{children}</div>
</VcUpload>
</div>