For AI agents: the complete documentation index is available at /apps-plugin/docs/llms.txt, the full documentation bundle is available at /apps-plugin/docs/llms-full.txt, and this page is available as Markdown at /apps-plugin/docs/components/form/picker-column.md.

picker-column

滚轮选择列,单列数据选择,通常作为 PickerView 的子组件使用。

扫码预览

扫码预览 picker-column

Props

属性名类型默认值必填说明
classNamestring-否组件类名
defaultValuestring | number-否默认选中的值,用于非受控模式
onChange(value: string | number, option: PickerColumnOption) => void-否选项变化时触发
optionsPickerColumnOption[]-是列数据
styleCSSProperties-否组件样式
valuestring | number-否当前选中的值

Ref 方法

方法名类型说明
getValue() => { option: PickerColumnOption; value: string | number }获取当前选中项的值和完整选项数据。
setValue(value: string | number) => void滚动到指定值对应的选项。