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
@nutui/nutui-react
2.6.6
weapp
nutui-react/src/packages/uploader/uploader.taro.tsx
上面链接中的代码fileList.push(fileItem) setFileList(fileList)使得uploader手动上传时图片预览加载不出来,必须得页面重新渲染才能加载出来
修改为fileList.push(fileItem) setFileList([...fileList]) 或者 setFileList(fileList.concat(fileItem))
uploader手动上传时图片预览加载不出来,必须得页面重新渲染才能加载出来
No response
The text was updated successfully, but these errors were encountered:
Alex-huxiyang
Successfully merging a pull request may close this issue.
NutUI React 包名
@nutui/nutui-react
NutUI React 版本号
2.6.6
平台
weapp
重现链接
nutui-react/src/packages/uploader/uploader.taro.tsx
重现步骤
上面链接中的代码fileList.push(fileItem)
setFileList(fileList)使得uploader手动上传时图片预览加载不出来,必须得页面重新渲染才能加载出来
期望的结果是什么?
修改为fileList.push(fileItem)
setFileList([...fileList])
或者
setFileList(fileList.concat(fileItem))
实际的结果是什么?
uploader手动上传时图片预览加载不出来,必须得页面重新渲染才能加载出来
环境信息
No response
其他补充信息
No response
The text was updated successfully, but these errors were encountered: