mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(angular): update angular tests to ng v6 and latest stencil
This commit is contained in:
@ -1,11 +1,22 @@
|
||||
import { ChangeDetectorRef, ContentChild, Directive, ElementRef, EmbeddedViewRef } from '@angular/core';
|
||||
import { proxyInputs } from '../proxies';
|
||||
import { VirtualItem } from './virtual-item';
|
||||
import { VirtualHeader } from './virtual-header';
|
||||
import { VirtualFooter } from './virtual-footer';
|
||||
import { VirtualContext } from './virtual-utils';
|
||||
|
||||
|
||||
@Directive({
|
||||
selector: 'ion-virtual-scroll'
|
||||
selector: 'ion-virtual-scroll',
|
||||
inputs: [
|
||||
'approxItemHeight',
|
||||
'approxHeaderHeight',
|
||||
'approxFooterHeight',
|
||||
'headerFn',
|
||||
'footerFn',
|
||||
'items',
|
||||
'itemHeight'
|
||||
]
|
||||
})
|
||||
export class VirtualScroll {
|
||||
|
||||
@ -17,7 +28,17 @@ export class VirtualScroll {
|
||||
private el: ElementRef,
|
||||
public cd: ChangeDetectorRef,
|
||||
) {
|
||||
this.el.nativeElement.nodeRender = this.nodeRender.bind(this);
|
||||
el.nativeElement.nodeRender = this.nodeRender.bind(this);
|
||||
|
||||
proxyInputs(this, this.el, [
|
||||
'approxItemHeight',
|
||||
'approxHeaderHeight',
|
||||
'approxFooterHeight',
|
||||
'headerFn',
|
||||
'footerFn',
|
||||
'items',
|
||||
'itemHeight'
|
||||
]);
|
||||
}
|
||||
|
||||
private nodeRender(el: HTMLElement|null, cell: any, index?: number) {
|
||||
|
Reference in New Issue
Block a user