form-render

图片上传

本文将介绍如何在 el-form-renderer 中接入图片上传组件。

父组件配置

在父组件中,我们需要通过 component 属性引入 ImageUpload 组件,并通过 el 属性传递配置。

上传组件属性

ImageUpload 组件支持以下属性(通过 el 传递):

示例

测试用例不可以上传; 请将 action 替换为上传地址; 或者点击设置图片地址查看效果