We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 214540b commit 07f382eCopy full SHA for 07f382e
src/packages/image/image.taro.tsx
@@ -56,8 +56,12 @@ export const Image: FunctionComponent<Partial<TaroImageProps>> = (props) => {
56
const containerStyle = {
57
...(height ? { height: pxCheck(height) } : {}),
58
...(width ? { width: pxCheck(width) } : {}),
59
- overflow: radius !== undefined && radius !== null ? 'hidden' : '',
60
- borderRadius: radius !== undefined && radius != null ? pxCheck(radius) : '',
+ ...(radius !== undefined && radius !== null
+ ? {
61
+ overflow: 'hidden',
62
+ borderRadius: pxCheck(radius),
63
+ }
64
+ : {}),
65
}
66
67
const imgStyle: any = {
0 commit comments