-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Version of antd-mobile
"antd-mobile": "^5.40.0",
Operating system and its version
No response
Browser and its version
chrome 139.0.7258.67(正式版本)
Sandbox to reproduce
No response
What happened?

这里的确是是有图片的
<Form.Item name='avatar' label='头像' rules={[{ required: true, message: '头像不能为空' }]}> <p>9999</p> <ImageUploader value={fileList} onChange={setFileList} upload={handleUpload} beforeUpload={beforeUpload} maxCount={1} onDelete={() => { return Dialog.confirm({ content: '是否确认删除' }) }} /> </Form.Item>
测试了很久,把999删掉后就不显示了图片回显了,name='avatar' 这个属性就被提示去掉
请问该如何在Form.Item里面正确使用这个组件ImageUploader