mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
fix(components): [el-upload] fix get accept from uploader.props (#4506)
fix #4505
This commit is contained in:
parent
23958e4a75
commit
6c79ef576c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user