We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.2.7
No response
scaleToFill/aspectFit/aspectFill/widthFix/heightFix/top/bottom/center/left/right/top left/top right/bottom left/bottom right 上述 mode 全部测试完,只有 aspectFit 有问题
3.1.1
The text was updated successfully, but these errors were encountered:
👋 @yahuian,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
请问方便发原图地址吗?或者请提供尺寸 @yahuian
@jarmywang 这是原图,不过其他图片应该也能复现该问题
@yahuian 看一下 aspectFit 缩放模式的规则,应该是图片宽高比和容器宽高比不匹配的问题,目前并没有好的解决方案,如果你图片包含 宽>高、宽<高 等情况,还是建议图片拉伸。
@anlyyao 非常感谢,我明白了。因为 aspectFit 不能保证图片会占满整个容器(只能保证长边完全占满容器),所以可能出现 radius 两侧不一致问题。而其他的 mode 都可以保证图片会充满整个容器,所以没问题。
No branches or pull requests
tdesign-miniprogram 版本
1.2.7
重现链接
No response
重现步骤
正常情况下圆角:
mode="aspectFit" 圆角两侧不一致
其他
scaleToFill/aspectFit/aspectFill/widthFix/heightFix/top/bottom/center/left/right/top left/top right/bottom left/bottom right
上述 mode 全部测试完,只有 aspectFit 有问题
期望结果
No response
实际结果
No response
基础库版本
3.1.1
补充说明
No response
The text was updated successfully, but these errors were encountered: