refactor(components): update to latest stencil api

This commit is contained in:
Adam Bradley
2017-07-25 10:03:07 -05:00
parent 69dfaad7b0
commit b8c0589513
91 changed files with 6199 additions and 4426 deletions

View File

@ -1,4 +1,4 @@
import { Component, h, Ionic, VNodeData } from '@stencil/core';
import { Component, Element } from '@stencil/core';
import { getParentElement, getToolbarHeight } from '../../utils/helpers';
@ -7,11 +7,11 @@ import { getParentElement, getToolbarHeight } from '../../utils/helpers';
styleUrl: 'fixed.scss'
})
export class Fixed {
$el: HTMLElement;
@Element() private el: HTMLElement;
mode: string;
hostData(): VNodeData {
const pageChildren: HTMLElement[] = getParentElement(this.$el).children;
hostData() {
const pageChildren: HTMLElement[] = getParentElement(this.el).children;
const headerHeight = getToolbarHeight('ION-HEADER', pageChildren, this.mode, '44px', '56px');
const footerHeight = getToolbarHeight('ION-FOOTER', pageChildren, this.mode, '50px', '48px');