Skip to content

Commit 069011b

Browse files
authored
fix: image样式属性监听 (#632)
1 parent da9d425 commit 069011b

File tree

1 file changed

+1
-1
lines changed
  • packages/react-vant/src/components/image

1 file changed

+1
-1
lines changed

packages/react-vant/src/components/image/Image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Image: React.FC<ImageProps> = props => {
2929
}
3030

3131
return internalStyle
32-
}, [props.style])
32+
}, [props.style,props.width,props.height,props.radius])
3333

3434
useEffect(() => {
3535
const payload = { error: false, loading: true } as typeof status

0 commit comments

Comments
 (0)