优化PreviewImg

master
LiuJiaNan 2025-12-17 10:18:51 +08:00
parent 24d4ab985d
commit 2ca986791c
1 changed files with 2 additions and 2 deletions

View File

@ -12,11 +12,11 @@ const PreviewImg = (props) => {
return ( return (
<Image.PreviewGroup> <Image.PreviewGroup>
{ {
files.filter(Boolean).map((item, index) => ( files.filter(Boolean).map((item) => (
<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={{ marginLeft: index > 0 ? 10 : 0 }} wrapperStyle={{ marginRight: 10, marginBottom: 10 }}
width={100} width={100}
height={100} height={100}
alt="" alt=""