mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
fix(upload): Fix upload file slot not work bug (#868)
Co-authored-by: bastarder <jie.qian@blockheaders.com>
This commit is contained in:
parent
f5d4f5d25c
commit
df3ef2a5cc
@ -191,7 +191,7 @@ export default defineComponent({
|
|||||||
handlePreview: this.onPreview,
|
handlePreview: this.onPreview,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: (props: { file: UploadFile; }) => {
|
default: (props: { file: UploadFile; }) => {
|
||||||
if (this.$slots.file) {
|
if (this.$slots.file) {
|
||||||
return this.$slots.file({
|
return this.$slots.file({
|
||||||
file: props.file,
|
file: props.file,
|
||||||
|
Loading…
Reference in New Issue
Block a user