fix(PreviewImg): 修正图片组件样式属性名称

- 将Image组件的样式属性由wrapperStyle改为styles
- 更新styles属性值结构,添加root对象包裹样式
- 修正样式生效问题,确保图片边距正确显示
2.0
LiuJiaNan 2026-06-26 14:57:57 +08:00
parent f9d8c02b8a
commit d161defcfc
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ const PreviewImg = (props) => {
<Image <Image
key={item[fileUrlKey] || item} key={item[fileUrlKey] || item}
src={item[fileUrlKey] ? fileUrl + item[fileUrlKey] : fileUrl + item} src={item[fileUrlKey] ? fileUrl + item[fileUrlKey] : fileUrl + item}
wrapperStyle={{ marginRight: 10, marginBottom: 10 }} styles={{ root: { marginRight: 10, marginBottom: 10 } }}
width={100} width={100}
height={100} height={100}
alt="" alt=""