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 34c846fbbb19d7c7e918032c27f18cb9a070ada4..bc413bcbc9e27e2d3b48b5998f9eb5248c15b1f3 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 @@ -43,6 +43,7 @@ TextInput(value?:{placeholder?: string | Resource, text?: string | Resource, con | inputFilter8+ | {
value: [ResourceStr](../../ui/ts-types.md)8+,
error?: (value: string)
} | - | 正则表达式,满足表达式的输入允许显示,不满足正则表达式的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.\*\d)(?=.\*[a-z])(?=.\*[A-Z]).{8,10}$,8到10位的强密码不支持过滤。
- value:设置正则表达式。
- error:正则匹配失败时,返回被忽略的内容。 | | copyOption9+ | [CopyOptions](ts-basic-components-text.md) | CopyOptions.CrossDevice | 设置文本是否可复制。 | | showPasswordIcon9+ | boolean | true | 密码输入模式时,密码框末尾的图标是否显示。 | +| style9+ | TextInputStyle | Default | TextInput风格。 | - EnterKeyType枚举说明 | 名称 | 描述 | @@ -61,6 +62,11 @@ TextInput(value?:{placeholder?: string | Resource, text?: string | Resource, con | InputType.Email | e-mail地址输入模式。 | | InputType.Number | 纯数字输入模式。 | +- TextInputStyle枚举说明 + | 名称 | 描述 | + | ------------------ | ------------- | + | Default | 默认风格。 | + | Inline | 内联输入风格。文字选中时底板与输入框同高。光标宽1.5vp,高24.0vp。 | ## 事件