@@ -5,7 +5,6 @@ import { matchBreakpoint } from '@utils/media';
55
66import { getIonTheme } from '../../global/ionic-global' ;
77
8-
98// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
109const BREAKPOINTS = [ '' , 'xs' , 'sm' , 'md' , 'lg' , 'xl' ] ;
1110
@@ -19,7 +18,6 @@ const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
1918 shadow : true ,
2019} )
2120export class Col implements ComponentInterface {
22-
2321 @Element ( ) el ! : HTMLIonColElement ;
2422 /**
2523 * The amount to offset the column, in terms of how many columns it should shift to the end
@@ -57,7 +55,7 @@ export class Col implements ComponentInterface {
5755 */
5856 @Prop ( ) offsetXl ?: string ;
5957
60- /**
58+ /**
6159 * The order of the column, in terms of where the column should position itself in the columns renderer.
6260 * If no value is passed, the column order implicit value will be the order in the html structure.
6361 */
@@ -266,9 +264,19 @@ export class Col implements ComponentInterface {
266264 }
267265
268266 componentDidLoad ( ) {
269- if (
270- this . pull || this . pullLg || this . pullMd || this . pullSm || this . pullXl || this . pullXs ||
271- this . push || this . pushLg || this . pushMd || this . pushSm || this . pushXl || this . pushXs
267+ if (
268+ this . pull ||
269+ this . pullLg ||
270+ this . pullMd ||
271+ this . pullSm ||
272+ this . pullXl ||
273+ this . pullXs ||
274+ this . push ||
275+ this . pushLg ||
276+ this . pushMd ||
277+ this . pushSm ||
278+ this . pushXl ||
279+ this . pushXs
272280 ) {
273281 printIonWarning (
274282 '[ion-col] - The pull and push properties are deprecated and no longer work, in favor of the order and size properties.' ,
@@ -290,7 +298,7 @@ export class Col implements ComponentInterface {
290298 [ theme ] : true ,
291299 [ `${ colSize } ` ] : colSize !== undefined ,
292300 [ `${ colOrder } ` ] : colOrder !== undefined ,
293- [ `${ colOffset } ` ] : colOffset !== undefined
301+ [ `${ colOffset } ` ] : colOffset !== undefined ,
294302 } }
295303 >
296304 < slot > </ slot >
0 commit comments