-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module: pulltorefresh): feat support scrollendrefresh and suppor…
…t both up and down (#204)
- Loading branch information
1 parent
4ece267
commit 1d00f7c
Showing
8 changed files
with
237 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
<div class="am-pull-to-refresh-content-wrapper"> | ||
<div class="am-pull-to-refresh-content" [ngClass]="transtionCls" [ngStyle]="style"> | ||
<div *ngIf="direction === 'down'" class="am-pull-to-refresh-indicator"> | ||
<ng-template *ngIf="isTemplateRef(indicator[state.currSt])" [ngTemplateOutlet]="indicator[state.currSt]"></ng-template> | ||
<ng-container *ngIf="!isTemplateRef(indicator[state.currSt])">{{indicator[state.currSt]}}</ng-container> | ||
<div *ngIf="direction === 'down' || direction === ''" class="am-pull-to-refresh-indicator am-pull-to-refresh-header-indicator"> | ||
<ng-template *ngIf="isTemplateRef(headerIndicator[state.currentState])" [ngTemplateOutlet]="headerIndicator[state.currentState]"></ng-template> | ||
<ng-container *ngIf="!isTemplateRef(headerIndicator[state.currentState])">{{headerIndicator[state.currentState]}}</ng-container> | ||
</div> | ||
<div #pullToRefresh> | ||
<ng-content></ng-content> | ||
<div *ngIf="direction === 'down' && endReachedRefresh" class="am-pull-to-refresh-indicator am-pull-to-refresh-footer-indicator"> | ||
<ng-template *ngIf="isTemplateRef(footerIndicator[state.currentState])" [ngTemplateOutlet]="footerIndicator[state.currentState]"></ng-template> | ||
<ng-container *ngIf="!isTemplateRef(footerIndicator[state.currentState])">{{footerIndicator[state.currentState]}}</ng-container> | ||
</div> | ||
</div> | ||
<div *ngIf="direction === 'up'" class="am-pull-to-refresh-indicator"> | ||
<ng-template *ngIf="isTemplateRef(indicator[state.currSt])" [ngTemplateOutlet]="indicator[state.currSt]"></ng-template> | ||
<ng-container *ngIf="!isTemplateRef(indicator[state.currSt])">{{indicator[state.currSt]}}</ng-container> | ||
<div *ngIf="direction === 'up' || direction === ''" class="am-pull-to-refresh-indicator am-pull-to-refresh-footer-indicator"> | ||
<ng-template *ngIf="isTemplateRef(footerIndicator[state.currentState])" [ngTemplateOutlet]="footerIndicator[state.currentState]"></ng-template> | ||
<ng-container *ngIf="!isTemplateRef(footerIndicator[state.currentState])">{{footerIndicator[state.currentState]}}</ng-container> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.