mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
refactor(components): update to latest stencil api
This commit is contained in:
@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user