From 9ea56b84f0b4c9851065d34b022d3a8afa892a21 Mon Sep 17 00:00:00 2001 From: bixuefeng Date: Mon, 20 Jun 2022 14:04:17 +0800 Subject: [PATCH] Feature: textinput/search type/textAlign/showPasswordIcon add Signed-off-by: bixuefeng Change-Id: I2be458ee87dfc0b92bbbd8c6681b8b1ae50d682f --- api/@internal/component/ets/search.d.ts | 6 ++++++ api/@internal/component/ets/text_input.d.ts | 22 +++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/search.d.ts b/api/@internal/component/ets/search.d.ts index acebd1ab95..e9ebc0e017 100644 --- a/api/@internal/component/ets/search.d.ts +++ b/api/@internal/component/ets/search.d.ts @@ -106,6 +106,12 @@ declare class SearchAttribute extends CommonMethod { * @since 9 */ copyOption(value: boolean | CopyOption): SearchAttribute; + + /** + * Called when the text align is set. + * @since 9 + */ + textAlign(value: TextAlign): SearchAttribute; } declare const Search: SearchInterface; diff --git a/api/@internal/component/ets/text_input.d.ts b/api/@internal/component/ets/text_input.d.ts index e62e74b4cb..c8501c2c14 100644 --- a/api/@internal/component/ets/text_input.d.ts +++ b/api/@internal/component/ets/text_input.d.ts @@ -25,11 +25,17 @@ declare enum InputType { Normal, /** - * Password entry mode. + * Pure digital input mode. * @since 7 */ Number, + /** + * Phone number entry mode. + * @since 9 + */ + PhoneNumber, + /** * E-mail address input mode. * @since 7 @@ -37,7 +43,7 @@ declare enum InputType { Email, /** - * Pure digital input mode. + * Password entry mode. * @since 7 */ Password, @@ -257,6 +263,18 @@ declare class TextInputAttribute extends CommonMethod { * @since 9 */ copyOption(value: boolean | CopyOption): TextInputAttribute; + + /** + * Called when the password show/hide icon is set. + * @since 9 + */ + showPasswordIcon(value: boolean): TextInputAttribute; + + /** + * Called when the text align is set. + * @since 9 + */ + textAlign(value: TextAlign): TextInputAttribute; } declare const TextInput: TextInputInterface; -- Gitee