From 0a3e6775ffe482f493df278af44399baeaa8cffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E8=BE=89?= Date: Mon, 11 Jul 2022 03:06:16 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md. Signed-off-by: huidengk --- .../reference/arkui-ts/ts-basic-components-textinput.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md index c55d69b4cf..d22c58ef3b 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md @@ -19,12 +19,13 @@ ## 接口 -TextInput(value?:{placeholder?: string controller?: TextInputController}) +TextInput(value?:{placeholder?: string | Resource,text?: string | Resource, controller?: TextInputController}) - 参数 | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | ----------------------- | ---------------------------------------- | ---- | ---- | --------------- | - | placeholder | string | 否 | - | 无输入时的提示文本。 | + | placeholder | string \| [Resource](../../ui/ts-types.md#resource类型) | 否 | - | 无输入时的提示文本。 | + | text | string \| [Resource](../../ui/ts-types.md#resource类型) | 否 | - | 设置提示文本的当前值。 | | controller8+ | [TextInputController](#textinputcontroller8) | 否 | - | 设置TextInput控制器。 | -- GitLab