跳到主要内容
版本:v8

ion-picker-column

shadow

选择器中的单个列。访问 ion-picker 文档以获取更多详细信息。

Properties

color

说明The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.
属性color
类型"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefined
默认值'primary'

disabled

说明If true, the user cannot interact with the picker.
属性disabled
类型boolean
默认值false

mode

说明The mode determines which platform styles to use.

这是一个虚拟属性,在初始化时设置一次,之后更改其值不会更新组件。
属性mode
类型"ios" | "md"
默认值undefined

value

说明The selected option in the picker.
属性value
类型number | string | undefined
默认值undefined

Events

Name说明冒泡
ionChangeEmitted when the value has changed.

This event will not emit when programmatically setting the value property.
true

Methods

setFocus

说明Sets focus on the scrollable container within the picker column. Use this method instead of the global pickerColumn.focus().
签名setFocus() => Promise<void>

CSS Shadow Parts

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

CSS Custom Properties

该组件没有可用的 CSS 自定义属性。

Slots

Name说明
prefixContent to show on the left side of the picker options.
suffixContent to show on the right side of the picker options.