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
{ title: '图片', dataIndex: 'image', valueType: 'image', width: '15%', renderFormItem: (_, { record, onChange }) => ( <ProFormUploadButton name="image" label="上传图片" fieldProps={{ fileList: [], onChange: (info) => { console.log(info); if (info.file.status === 'done') { onChange(info.file.response.url); } }, action: '', // 设置你的上传接口 URL }} value={record.image} /> ), }
希望可以直接在可编辑列表中进行查看到图片,status可以变成done
The text was updated successfully, but these errors were encountered:
你自己定义了fileList为空,代码里又没看到你把值赋进去,肯定是空的啊,看看文档吧
Sorry, something went wrong.
No branches or pull requests
🐛 bug 描述
📷 复现步骤 | Recurrence steps
{
title: '图片',
dataIndex: 'image',
valueType: 'image',
width: '15%',
renderFormItem: (_, { record, onChange }) => (
<ProFormUploadButton
name="image"
label="上传图片"
fieldProps={{
fileList: [],
onChange: (info) => {
console.log(info);
if (info.file.status === 'done') {
onChange(info.file.response.url);
}
},
action: '', // 设置你的上传接口 URL
}}
value={record.image}
/>
),
}
🏞 期望结果 | Expected results
希望可以直接在可编辑列表中进行查看到图片,status可以变成done
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: