chore: image custom params
This commit is contained in:
@@ -37,15 +37,11 @@ const ThumbImg: React.FC<{
|
||||
}
|
||||
|
||||
const renderImageItem = (item: any) => {
|
||||
const thumImgWrapStyle = item.loading
|
||||
? { width: item.width, height: item.height }
|
||||
: {};
|
||||
return (
|
||||
<span
|
||||
key={item.uid}
|
||||
className="thumb-img"
|
||||
style={{
|
||||
width: item.width,
|
||||
height: item.height
|
||||
}}
|
||||
>
|
||||
<span key={item.uid} className="thumb-img" style={thumImgWrapStyle}>
|
||||
<>
|
||||
{item.loading ? (
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user