From 24e02558d922f0de8c845f14fd44ae082ccd0888 Mon Sep 17 00:00:00 2001 From: wangxiuxiu96 Date: Mon, 16 Dec 2024 17:52:38 +0800 Subject: [PATCH] =?UTF-8?q?TextInput/TextArea=E6=94=AF=E6=8C=81halfLeading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangxiuxiu96 --- arkui/ace_engine/native/native_node.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 18827b706..429eced51 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -2994,6 +2994,18 @@ typedef enum { * @since 16 */ NODE_TEXT_INPUT_ENABLE_PREVIEW_TEXT = 7033, + /** + * @brief Sets whether to center text vertically in the textInput component. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: whether to center text vertically. The default value is false. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether to center text vertically. \n + * + * @since 16 + */ + NODE_TEXT_INPUT_HALF_LEADING = 7034, /** * @brief Defines the default placeholder text for the multi-line text box. * This attribute can be set, reset, and obtained as required through APIs. @@ -3314,6 +3326,18 @@ typedef enum { * @since 16 */ NODE_TEXT_AREA_ENABLE_PREVIEW_TEXT = 8024, + /** + * @brief Sets whether to center text vertically in the textArea component. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: whether to center text vertically. The default value is false. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether to center text vertically. \n + * + * @since 16 + */ + NODE_TEXT_AREA_HALF_LEADING = 8025, /** * @brief Defines the button text content. This attribute can be set, reset, and obtained as required through APIs. * -- Gitee