Skip to content

Commit

Permalink
fix: Image 组件通过css设置transform 属性不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxulong committed Dec 9, 2024
1 parent 6da4d69 commit 4dce8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis/src/renderers/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ export class ImageField extends React.Component<
themeCss: wrapperCustomStyle
})
)}
style={{...style, transform: `scale(${this.state.scale})`}}
style={{transform: `scale(${this.state.scale})`, ...style}}
onClick={this.handleClick}
onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}
Expand Down

0 comments on commit 4dce8af

Please sign in to comment.