mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
refactor(): minor updates for next stencil version (#20787)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Component, ComponentInterface, Element, Host, Listen, Prop, h } from '@stencil/core';
|
||||
import { Component, ComponentInterface, Host, Listen, Prop, forceUpdate, h } from '@stencil/core';
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import { matchBreakpoint } from '../../utils/media';
|
||||
@ -14,8 +14,6 @@ const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
||||
})
|
||||
export class Col implements ComponentInterface {
|
||||
|
||||
@Element() el!: HTMLIonColElement;
|
||||
|
||||
/**
|
||||
* The amount to offset the column, in terms of how many columns it should shift to the end
|
||||
* of the total available.
|
||||
@ -158,7 +156,7 @@ export class Col implements ComponentInterface {
|
||||
|
||||
@Listen('resize', { target: 'window' })
|
||||
onResize() {
|
||||
this.el.forceUpdate();
|
||||
forceUpdate(this);
|
||||
}
|
||||
|
||||
// Loop through all of the breakpoints to see if the media query
|
||||
|
||||
Reference in New Issue
Block a user