Skip to content

Commit c17af68

Browse files
authored
fix(image): 修复内联样式不生效 (#3254)
* fix(image): 修复内联样式不生效 * fix: cr
1 parent 838cffb commit c17af68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/packages/image/image.taro.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import React, { FunctionComponent, useCallback, useState } from 'react'
1+
import React, {
2+
CSSProperties,
3+
FunctionComponent,
4+
useCallback,
5+
useState,
6+
} from 'react'
27
import Taro from '@tarojs/taro'
38
import {
49
Image as TImage,
@@ -62,6 +67,7 @@ export const Image: FunctionComponent<Partial<TaroImageProps>> = (props) => {
6267
borderRadius: pxCheck(radius),
6368
}
6469
: {}),
70+
...(style as CSSProperties),
6571
}
6672

6773
const imgStyle: any = {

0 commit comments

Comments
 (0)