This commit is contained in:
kailong321200875
2023-12-15 11:23:43 +08:00
parent a09ee60bb1
commit 30fb2de6f3
2 changed files with 63 additions and 4 deletions

View File

@@ -323,7 +323,21 @@ export default defineComponent({
}
})
return (
return item.component === ComponentNameEnum.UPLOAD ? (
<Com
vModel:file-list={itemVal.value}
ref={(el: any) => setComponentRefMap(el, item.field)}
{...(autoSetPlaceholder && setTextPlaceholder(item))}
{...setComponentProps(item)}
style={
item.componentProps?.style || {
width: '100%'
}
}
>
{{ ...slotsMap }}
</Com>
) : (
<Com
vModel={itemVal.value}
ref={(el: any) => setComponentRefMap(el, item.field)}