fix(PreviewImg): 修正图片组件样式属性名称
- 将Image组件的样式属性由wrapperStyle改为styles - 更新styles属性值结构,添加root对象包裹样式 - 修正样式生效问题,确保图片边距正确显示2.0
parent
f9d8c02b8a
commit
d161defcfc
|
|
@ -16,7 +16,7 @@ const PreviewImg = (props) => {
|
|||
<Image
|
||||
key={item[fileUrlKey] || item}
|
||||
src={item[fileUrlKey] ? fileUrl + item[fileUrlKey] : fileUrl + item}
|
||||
wrapperStyle={{ marginRight: 10, marginBottom: 10 }}
|
||||
styles={{ root: { marginRight: 10, marginBottom: 10 } }}
|
||||
width={100}
|
||||
height={100}
|
||||
alt=""
|
||||
|
|
|
|||
Loading…
Reference in New Issue