ion-picker-column
选择器中的单独列。请访问 ion-picker
文档了解更多详细信息。
¥An individual column within a picker. Visit the ion-picker
documentation for more details.
属性
¥Properties
color
Description | 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. |
Attribute | color |
Type | "danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefined |
Default | 'primary' |
disabled
Description | If true , the user cannot interact with the picker. |
Attribute | disabled |
Type | boolean |
Default | false |
mode
Description | The mode determines which platform styles to use. |
Attribute | mode |
Type | "ios" | "md" |
Default | undefined |
value
Description | The selected option in the picker. |
Attribute | value |
Type | number | string | undefined |
Default | undefined |
事件
¥Events
Name | Description | Bubbles |
---|---|---|
ionChange | Emitted when the value has changed. This event will not emit when programmatically setting the value property. | true |
方法
¥Methods
setFocus
Description | Sets focus on the scrollable container within the picker column. Use this method instead of the global pickerColumn.focus() . |
Signature | setFocus() => Promise<void> |
CSS 阴影部分
¥CSS Shadow Parts
No CSS shadow parts available for this component.
CSS 自定义属性
¥CSS Custom Properties
No CSS custom properties available for this component.
插槽
¥Slots
Name | Description |
---|---|
prefix | Content to show on the left side of the picker options. |
suffix | Content to show on the right side of the picker options. |