mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
refactor(all): additional tslint rules
This commit is contained in:
@ -159,9 +159,10 @@ export class VirtualScroll {
|
||||
if (!this.items) {
|
||||
return;
|
||||
}
|
||||
if (len === -1) {
|
||||
len = this.items.length - offset;
|
||||
}
|
||||
const length = (len === -1)
|
||||
? this.items.length - offset
|
||||
: len;
|
||||
|
||||
const max = this.lastItemLen;
|
||||
let j = 0;
|
||||
if (offset > 0 && offset < max) {
|
||||
@ -182,7 +183,7 @@ export class VirtualScroll {
|
||||
this.approxHeaderHeight,
|
||||
this.approxFooterHeight,
|
||||
this.approxItemHeight,
|
||||
j, offset, len
|
||||
j, offset, length
|
||||
);
|
||||
console.debug('[virtual] cells recalculated', cells.length);
|
||||
this.cells = inplaceUpdate(this.cells, cells, offset);
|
||||
@ -383,7 +384,7 @@ export class VirtualScroll {
|
||||
if (this.renderItem) {
|
||||
return (
|
||||
<VirtualProxy dom={this.virtualDom}>
|
||||
{ this.virtualDom.map(node => this.renderVirtualNode(node)) }
|
||||
{this.virtualDom.map(node => this.renderVirtualNode(node))}
|
||||
</VirtualProxy>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user