跳到主要内容
版本:v8

ion-col

shadow

列是网格系统的单元格组件,放置在行内部。它们会扩展以填满行。网格内的所有内容都应放在列内部。

更多信息请参见网格文档。

列对齐​

默认情况下,列会拉伸以填充行的整个高度。列是 flex 项目,因此有多个 CSS 类 可以应用于列以自定义此行为。

Properties​

offset​

说明The amount to offset the column, in terms of how many columns it should shift to the end of the total available.
属性offset
类型string | undefined
默认值undefined

offsetLg​

说明The amount to offset the column for lg screens, in terms of how many columns it should shift to the end of the total available.
属性offset-lg
类型string | undefined
默认值undefined

offsetMd​

说明The amount to offset the column for md screens, in terms of how many columns it should shift to the end of the total available.
属性offset-md
类型string | undefined
默认值undefined

offsetSm​

说明The amount to offset the column for sm screens, in terms of how many columns it should shift to the end of the total available.
属性offset-sm
类型string | undefined
默认值undefined

offsetXl​

说明The amount to offset the column for xl screens, in terms of how many columns it should shift to the end of the total available.
属性offset-xl
类型string | undefined
默认值undefined

offsetXs​

说明The amount to offset the column for xs screens, in terms of how many columns it should shift to the end of the total available.
属性offset-xs
类型string | undefined
默认值undefined

pull​

说明The amount to pull the column, in terms of how many columns it should shift to the start of the total available.
属性pull
类型string | undefined
默认值undefined

pullLg​

说明The amount to pull the column for lg screens, in terms of how many columns it should shift to the start of the total available.
属性pull-lg
类型string | undefined
默认值undefined

pullMd​

说明The amount to pull the column for md screens, in terms of how many columns it should shift to the start of the total available.
属性pull-md
类型string | undefined
默认值undefined

pullSm​

说明The amount to pull the column for sm screens, in terms of how many columns it should shift to the start of the total available.
属性pull-sm
类型string | undefined
默认值undefined

pullXl​

说明The amount to pull the column for xl screens, in terms of how many columns it should shift to the start of the total available.
属性pull-xl
类型string | undefined
默认值undefined

pullXs​

说明The amount to pull the column for xs screens, in terms of how many columns it should shift to the start of the total available.
属性pull-xs
类型string | undefined
默认值undefined

push​

说明The amount to push the column, in terms of how many columns it should shift to the end of the total available.
属性push
类型string | undefined
默认值undefined

pushLg​

说明The amount to push the column for lg screens, in terms of how many columns it should shift to the end of the total available.
属性push-lg
类型string | undefined
默认值undefined

pushMd​

说明The amount to push the column for md screens, in terms of how many columns it should shift to the end of the total available.
属性push-md
类型string | undefined
默认值undefined

pushSm​

说明The amount to push the column for sm screens, in terms of how many columns it should shift to the end of the total available.
属性push-sm
类型string | undefined
默认值undefined

pushXl​

说明The amount to push the column for xl screens, in terms of how many columns it should shift to the end of the total available.
属性push-xl
类型string | undefined
默认值undefined

pushXs​

说明The amount to push the column for xs screens, in terms of how many columns it should shift to the end of the total available.
属性push-xs
类型string | undefined
默认值undefined

size​

说明The size of the column, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
属性size
类型string | undefined
默认值undefined

sizeLg​

说明The size of the column for lg screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
属性size-lg
类型string | undefined
默认值undefined

sizeMd​

说明The size of the column for md screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
属性size-md
类型string | undefined
默认值undefined

sizeSm​

说明The size of the column for sm screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
属性size-sm
类型string | undefined
默认值undefined

sizeXl​

说明The size of the column for xl screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
属性size-xl
类型string | undefined
默认值undefined

sizeXs​

说明The size of the column for xs screens, in terms of how many columns it should take up out of the total available. If "auto" is passed, the column will be the size of its content.
属性size-xs
类型string | undefined
默认值undefined

Events​

该组件没有可用的事件。

Methods​

该组件没有可用的公共方法。

CSS Shadow Parts​

该组件没有可用的 CSS 阴影部分。

CSS Custom Properties​

Name说明
--ion-grid-column-paddingPadding for the Column
--ion-grid-column-padding-lgPadding for the Column on lg screens and up
--ion-grid-column-padding-mdPadding for the Column on md screens and up
--ion-grid-column-padding-smPadding for the Column on sm screens and up
--ion-grid-column-padding-xlPadding for the Column on xl screens and up
--ion-grid-column-padding-xsPadding for the Column on xs screens and up
--ion-grid-columnsThe number of total Columns in the Grid

Slots​

该组件没有可用的插槽。