From 42a13de8cc3ce0d733741fe9cd096df2aa141514 Mon Sep 17 00:00:00 2001 From: ZakaryCode Date: Mon, 28 Aug 2023 01:54:23 +0000 Subject: [PATCH] refactor(types): sync components types --- docs/components/forms/textarea.md | 2 +- packages/taro-components/types/Textarea.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/components/forms/textarea.md b/docs/components/forms/textarea.md index b4f4332308f3..6d8e5702c6cf 100755 --- a/docs/components/forms/textarea.md +++ b/docs/components/forms/textarea.md @@ -84,7 +84,7 @@ export default class PageView extends Component { | disableDefaultPadding | `boolean` | `false` | 否 | 是否去掉 iOS 下的默认内边距 | | nativeProps | `Record` | | 否 | 用于透传 `WebComponents` 上的属性到内部 H5 标签上 | | confirmType | "send" or "search" or "next" or "go" or "done" or "return" | | 否 | 设置键盘右下角按钮的文字 | -| confirmHold | `string` | | 否 | 点击键盘右下角按钮时是否保持键盘不收起 | +| confirmHold | `boolean` | | 否 | 点击键盘右下角按钮时是否保持键盘不收起 | | name | `string` | | 否 | 组件名字,用于表单提交获取数据。 | | showCount | `boolean` | `true` | 否 | 是否渲染字数统计功能(是否删除默认计数器/是否显示字数统计)。 | | controlled | `boolean` | `false` | 否 | 是否为受控组件。为 true 时,value 内容会完全受 setData 控制。 | diff --git a/packages/taro-components/types/Textarea.d.ts b/packages/taro-components/types/Textarea.d.ts index 18771343bf88..55e99b7ab482 100644 --- a/packages/taro-components/types/Textarea.d.ts +++ b/packages/taro-components/types/Textarea.d.ts @@ -99,7 +99,7 @@ interface TextareaProps extends StandardProps, FormItemProps { /** 点击键盘右下角按钮时是否保持键盘不收起 * @supported weapp, swan, tt */ - confirmHold?: string + confirmHold?: boolean /** 组件名字,用于表单提交获取数据。 * @supported alipay */