We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.2-beta.40
win10
3.0.11
https://jsfiddle.net/9pgqcde6/3/
1.页面上使用upload组件
2.在js中调用组件方法abort setup(props, { emit }){ const refs: any = reactive({ upload: null })
onBeforeUnmount(() => { console.log(refs.upload) refs.upload.abort(null) })
return { ...toRefs(refs) }
}
1.在onBeforeUnmount方法中打印可以看到abort方法 2.可以调用到abort方法
报错: Uncaught (in promise) TypeError:refs.upload.abort is not a function
The text was updated successfully, but these errors were encountered:
Translation of this issue:
<el-upload ref="upload"> 2. invoke component method abort in JS
setup(props, { emit }){ const refs: any = reactive({
upload: null })
onBeforeUnmount(() => { console.log ( refs.upload )
refs.upload.abort (null) })
return { ...toRefs(refs)
} }
Print in the onbeforeunmount method to see the abort method
You can call the abort method
report errors: Uncaught (in promise) TypeError: refs.upload.abort is not a function
Sorry, something went wrong.
Fixed and will be released on Friday this week.
Successfully merging a pull request may close this issue.
Element Plus version
1.0.2-beta.40
OS/Browsers version
win10
Vue version
3.0.11
Reproduction Link
https://jsfiddle.net/9pgqcde6/3/
Steps to reproduce
1.页面上使用upload组件
2.在js中调用组件方法abort
setup(props, { emit }){
const refs: any = reactive({
upload: null
})
onBeforeUnmount(() => {
console.log(refs.upload)
refs.upload.abort(null)
})
return {
...toRefs(refs)
}
}
What is Expected?
1.在onBeforeUnmount方法中打印可以看到abort方法
2.可以调用到abort方法
What is actually happening?
报错:
Uncaught (in promise) TypeError:refs.upload.abort is not a function
The text was updated successfully, but these errors were encountered: