diff --git a/src/picker/README.en-US.md b/src/picker/README.en-US.md index 594b5268a..c72f8d353 100644 --- a/src/picker/README.en-US.md +++ b/src/picker/README.en-US.md @@ -9,8 +9,8 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N auto-close | Boolean | true | \- | N -cancel-btn | String / Boolean / Object | true | Typescript:`boolean \| string \| ButtonProps` | N -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 +cancel-btn | String / Boolean | true | Typescript:`boolean \| string` | N +confirm-btn | String / Boolean | true | Typescript:`boolean \| string` | N footer | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N header | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N item-height | Number | 80 | \- | N diff --git a/src/picker/README.md b/src/picker/README.md index 4399c236c..0a2899e55 100644 --- a/src/picker/README.md +++ b/src/picker/README.md @@ -58,8 +58,8 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N auto-close | Boolean | true | 自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible | N -cancel-btn | String / Boolean / Object | true | 取消按钮文字。TS 类型:`boolean \| string \| ButtonProps` | N -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 +cancel-btn | String / Boolean | true | 取消按钮文字。TS 类型:`boolean \| string` | N +confirm-btn | String / Boolean | true | 确定按钮文字。TS 类型:`boolean \| string` | N footer | Slot | - | 底部内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N item-height | Number | 80 | PickerItem 的子项高度,单位 rpx | N diff --git a/src/picker/type.ts b/src/picker/type.ts index 2d9181d86..cbbc75cfa 100644 --- a/src/picker/type.ts +++ b/src/picker/type.ts @@ -4,7 +4,6 @@ * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ -import { ButtonProps } from '../button/index'; import { PopupProps } from '../popup/index'; import { KeysType } from '../common/common'; @@ -23,7 +22,7 @@ export interface TdPickerProps { */ cancelBtn?: { type: null; - value?: boolean | string | ButtonProps; + value?: boolean | string; }; /** * 确定按钮文字 @@ -31,7 +30,7 @@ export interface TdPickerProps { */ confirmBtn?: { type: null; - value?: boolean | string | ButtonProps; + value?: boolean | string; }; /** * 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容