fix(components): [el-upload] fix get accept from uploader.props (#4506)

fix #4505
This commit is contained in:
sumy 2021-11-24 22:32:56 +08:00 committed by GitHub
parent 23958e4a75
commit 6c79ef576c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ export default defineComponent({
function onDrop(e: DragEvent) {
if (props.disabled || !uploader) return
const accept = uploader.accept
const accept = uploader.props?.accept || uploader.accept
dragover.value = false
if (!accept) {
emit('file', e.dataTransfer.files)