26 lines
950 B
Markdown
26 lines
950 B
Markdown
:: 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 }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/packages/uniapp-components/picker/type.ts) | 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 | -
|