Skip to content

Commit

Permalink
fix: Image 组件通过css设置transform 属性不生效 (#11341)
Browse files Browse the repository at this point in the history
* fix: 移动端picker label为对象时页面白屏

* Update PickerColumn.tsx

* fix: Image 组件通过css设置transform 属性不生效

---------

Co-authored-by: zhangxulong <[email protected]>
  • Loading branch information
z1769057083 and zhangxulong authored Dec 13, 2024
1 parent 277dff5 commit 8d96ab3
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 8d96ab3

Please sign in to comment.