readme 路径调整
This commit is contained in:
@@ -12,8 +12,8 @@ isComponent: true
|
||||
|
||||
```json
|
||||
"usingComponents": {
|
||||
"t-picker": "tdesign-miniprogram/picker/picker",
|
||||
"t-picker-item": "tdesign-miniprogram/picker/picker-item",
|
||||
"t-picker": "/components/picker/picker",
|
||||
"t-picker-item": "/components/picker/picker-item",
|
||||
}
|
||||
```
|
||||
|
||||
@@ -30,14 +30,14 @@ isComponent: true
|
||||
-- | -- | -- | -- | --
|
||||
auto-close | Boolean | true | 自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible | N
|
||||
cancel-btn | String / Boolean / Object | true | 取消按钮文字。TS 类型:`boolean | string | ButtonProps` | N
|
||||
columns | Array / Function | [] | 【开发中】必需。配置每一列的选项。TS 类型:`Array<PickerColumn> | ((item: Array<PickerValue>) => Array<PickerColumn>)` `type PickerColumn = PickerColumnItem[]` `interface PickerColumnItem { label: string,value: string}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | Y
|
||||
confirm-btn | String / Boolean / Object | true | 确定按钮文字。TS 类型:`boolean | string | ButtonProps`,[Button API Documents](./button?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
|
||||
columns | Array / Function | [] | 【开发中】必需。配置每一列的选项。TS 类型:`Array<PickerColumn> | ((item: Array<PickerValue>) => Array<PickerColumn>)` `type PickerColumn = PickerColumnItem[]` `interface PickerColumnItem { label: string,value: string}`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | Y
|
||||
confirm-btn | String / Boolean / Object | true | 确定按钮文字。TS 类型:`boolean | string | ButtonProps`,[Button API Documents](./button?tab=api)。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | N
|
||||
footer | Slot | - | 底部内容 | N
|
||||
header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容 | N
|
||||
render-label | String / Function | - | 【开发中】自定义label。TS 类型:`(item: PickerColumnItem) => string` | N
|
||||
title | String | '' | 标题 | N
|
||||
value | Array | - | 选中值。TS 类型:`Array<PickerValue>` `type PickerValue = string | number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
|
||||
default-value | Array | undefined | 选中值。非受控属性。TS 类型:`Array<PickerValue>` `type PickerValue = string | number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
|
||||
value | Array | - | 选中值。TS 类型:`Array<PickerValue>` `type PickerValue = string | number`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | N
|
||||
default-value | Array | undefined | 选中值。非受控属性。TS 类型:`Array<PickerValue>` `type PickerValue = string | number`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | N
|
||||
visible | Boolean | false | 是否显示 | N
|
||||
|
||||
### Picker Events
|
||||
@@ -54,4 +54,4 @@ pick | `(detail: { value: Array<PickerValue>; label: string; index: number; col
|
||||
名称 | 类型 | 默认值 | 说明 | 必传
|
||||
-- | -- | -- | -- | --
|
||||
format | Function | - | 格式化标签。TS 类型:`(option: PickerItemOption) => string` | N
|
||||
options | Array | [] | 数据源。TS 类型:`Array<PickerItemOption>` `interface PickerItemOption { label: string; value: string | number }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
|
||||
options | Array | [] | 数据源。TS 类型:`Array<PickerItemOption>` `interface PickerItemOption { label: string; value: string | number }`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | N
|
||||
|
||||
Reference in New Issue
Block a user