使用 SAP Spartacus Storefront 轮播组件,左右滑动不起作用,无法导航轮播中的产品。我找不到任何提到该库不支持移动滑动的文档。
有办法解决这个问题吗?
以下是适用于桌面的现有模板。
<cx-carousel #prp *ngIf="products$ | async as product" [title]="title" [hideIndicators]="true" [product]="product"
[template]="carouselItem">
</cx-carousel>
<ng-template let-item="product" #carouselItem>
<a class="product-image-link" tabindex="0" [routerLink]="['/', 'product', product.code]">
<cx-media [container]="product.images?.PRIMARY" format="product"
[attr.aria-label]="'prpref' | cxTranslate"></cx-media>
</a>
<div class="product-desc">
// other code
</div>
</ng-template>
我在 OOTB 中也没有看到滑动功能。 您可以尝试滚动到右侧功能,只需在开箱即用的产品轮播上使用溢出CSS属性即可。
问候 KR