Skip to content

Commit ad99d58

Browse files
authored
docs(Picker): fix api docs (#3540)
1 parent b74da77 commit ad99d58

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/picker/README.en-US.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ name | type | default | description | required
99
style | Object | - | CSS(Cascading Style Sheets) | N
1010
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
1111
auto-close | Boolean | true | \- | N
12-
cancel-btn | String / Boolean / Object | true | Typescript:`boolean \| string \| ButtonProps` | N
13-
confirm-btn | String / Boolean / Object | true | Typescript:`boolean \| string \| ButtonProps`[Button API Documents](./button?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N
12+
cancel-btn | String / Boolean | true | Typescript:`boolean \| string` | N
13+
confirm-btn | String / Boolean | true | Typescript:`boolean \| string` | N
1414
footer | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
1515
header | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
1616
item-height | Number | 80 | \- | N

src/picker/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ isComponent: true
5858
style | Object | - | 样式 | N
5959
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
6060
auto-close | Boolean | true | 自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible | N
61-
cancel-btn | String / Boolean / Object | true | 取消按钮文字。TS 类型:`boolean \| string \| ButtonProps` | N
62-
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
61+
cancel-btn | String / Boolean | true | 取消按钮文字。TS 类型:`boolean \| string` | N
62+
confirm-btn | String / Boolean | true | 确定按钮文字。TS 类型:`boolean \| string` | N
6363
footer | Slot | - | 底部内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
6464
header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
6565
item-height | Number | 80 | PickerItem 的子项高度,单位 rpx | N

src/picker/type.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
55
* */
66

7-
import { ButtonProps } from '../button/index';
87
import { PopupProps } from '../popup/index';
98
import { KeysType } from '../common/common';
109

@@ -23,15 +22,15 @@ export interface TdPickerProps {
2322
*/
2423
cancelBtn?: {
2524
type: null;
26-
value?: boolean | string | ButtonProps;
25+
value?: boolean | string;
2726
};
2827
/**
2928
* 确定按钮文字
3029
* @default true
3130
*/
3231
confirmBtn?: {
3332
type: null;
34-
value?: boolean | string | ButtonProps;
33+
value?: boolean | string;
3534
};
3635
/**
3736
* 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容

0 commit comments

Comments
 (0)