- ProductCarousel 新增 imageFit="adaptive"(widthFix + 动态高度) - 门店套餐详情按图片真实比例自适应高度,完整显示不裁剪 - 补充 v3.4.18 文档 F 项 Co-Authored-By: WorkBuddy <workbuddy@tencent.com>
This commit is contained in:
@@ -18,6 +18,21 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* adaptive 模式:去掉固定 1:1 比例,按图片真实比例自适应高度,完整显示不裁剪 */
|
||||
.detail-carousel-wrap--adaptive {
|
||||
aspect-ratio: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.detail-carousel-wrap--adaptive .detail-carousel {
|
||||
height: auto;
|
||||
transition: height 0.2s ease;
|
||||
}
|
||||
|
||||
.detail-carousel-wrap--adaptive .detail-carousel-image {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.detail-carousel {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
Reference in New Issue
Block a user