Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(wechat): Image 组件 mode 属性添加 heightFix (#1402)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuzfinal committed Dec 4, 2020
1 parent 5abe406 commit a6d9d3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/remax-wechat/src/hostComponents/Image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface ImageProps extends BaseProps {
* aspectFit 缩放模式,保持纵横比缩放图片,使图片的长边能完全显示出来。也就是说,可以完整地将图片显示出来。
* aspectFill 缩放模式,保持纵横比缩放图片,只保证图片的短边能完全显示出来。也就是说,图片通常只在水平或垂直方向是完整的,另一个方向将会发生截取。
* widthFix 缩放模式,宽度不变,高度自动变化,保持原图宽高比不变
* heightFix 缩放模式,高度不变,宽度自动变化,保持原图宽高比不变
* top 裁剪模式,不缩放图片,只显示图片的顶部区域
* bottom 裁剪模式,不缩放图片,只显示图片的底部区域
* center 裁剪模式,不缩放图片,只显示图片的中间区域
Expand All @@ -30,6 +31,7 @@ export interface ImageProps extends BaseProps {
| 'aspectFit'
| 'aspectFill'
| 'widthFix'
| 'heightFix'
| 'top'
| 'bottom'
| 'center'
Expand Down

1 comment on commit a6d9d3a

@vercel
Copy link

@vercel vercel bot commented on a6d9d3a Dec 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.