Files
mini-yu/uni_modules/tdesign-uniapp/components/picker-item/README.md
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00

950 B

:: BASE_DOC ::

API

PickerItem Props

名称 类型 默认值 描述 必传
format Function - 格式化标签。TS 类型:(option: PickerItemOption, columnIndex: number) => PickerItemOption N
options Array [] 数据源。TS 类型:PickerItemOption[] interface PickerItemOption { label: string; value: string | number; icon?: string }详细类型定义 N

PickerItem Slots

名称 描述
label-suffix--[index] 列表子项后置插槽,用于自定义标签文本之后的内容。

CSS Variables

组件提供了下列 CSS 变量,可用于自定义样式。

名称 默认值 描述
--td-picker-item-active-color @text-color-primary -
--td-picker-item-color @text-color-secondary -
--td-picker-item-font-size @font-size-m -