无限滚动不适用于完美的滚动条角度5

问题描述 投票:0回答:1
  1. 我正在使用perfect-scrollbar,并且还想使用infiniteScroll,但无法正常工作。

    <perfect-scrollbar style="max-height: 300px;" fxFlex="auto">
        <ng-container *ngFor="let search of SearchData; let i = index;">
            <div class="single-result media">
                <div class="avatarimg1">
                    <img [src]="search.profile_thumbnail_url" defaultCompany />
                </div>
                <div class="media-body row">
                    <div class="content col-md-8">
                        <a [routerLink]="['/application/company/company_profile']" [queryParams]="{ id:search.row_id}"
                            (click)="removeSearchResult()">
                            <h4 class="text-capitalize" style="color: #83131a;">{{search.account_name}} </h4>
                        </a>
                        <p *ngIf="search.sector_name">{{search.sector_name}}/{{search.industry_name}}</p>
                    </div>
                    <div class="col-md-4 text-right">
                        <span class="button-section">
                            <a class="btn module_name">{{search.module_display}}</a>
                        </span>
                    </div>
                </div>
            </div>
        </ng-container>
        <div class="company-item" data-infinite-scroll debounce [infiniteScrollDistance]="scrollDistance"
            [infiniteScrollUpDistance]="scrollUpDistance" [infiniteScrollThrottle]="throttle" (scrolled)="onScrollDown()">
        </div>
    </perfect-scrollbar>
    

使用此代码,它与外部滚动一起工作,而不与完美滚动条一起工作

here is the image

angular5 infinite-scroll perfect-scrollbar
1个回答
0
投票

有人解决这个问题,因为我也面临着同样的问题。

© www.soinside.com 2019 - 2024. All rights reserved.