From ceb08f5cb71dc46dafec8ae703151809ce9b4b71 Mon Sep 17 00:00:00 2001 From: liuyongkai2 Date: Thu, 4 Sep 2025 21:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E5=86=85=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=83=BD=E5=A4=9F=E8=AE=BE=E7=BD=AE=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuyongkai2 --- 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 39f3bba8e16..db76638f937 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -3554,6 +3554,30 @@ typedef enum { * */ NODE_TEXT_AREA_TEXT, + /** + * @brief Defines the counter settings. This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: whether to show a character counter. The value true means to show a character counter. \n + * .value[1]?.f32: threshold percentage for displaying the character counter. The character counter is displayed + * when the number of characters that have been entered is greater than the maximum number of characters multiplied + * by the threshold percentage value. The value range is 1 to 100. If the value is a decimal, it is rounded down. \n + * .value[2]?.i32: whether to highlight the border when the number of entered characters reaches the maximum. \n + * .value[3]?.u32: the color of counter when textField hasn't wanted to exceed the maximum character count. \n + * .value[4]?.u32: the color of counter when textField wants to exceed the maximum character count. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether to show a character counter. \n + * .value[1].f32: threshold percentage for displaying the character counter. The character counter is displayed + * when the number of characters that have been entered is greater than the maximum number of characters multiplied + * by the threshold percentage value. The value range is 1 to 100. \n + * .value[2].i32: whether to highlight the border when the number of entered characters reaches the maximum. + * The default value is true. \n + * .value[3].u32: the color of counter when textField hasn't wanted to exceed the maximum character count. \n + * .value[4].u32: the color of counter when textField wants to exceed the maximum character count. \n + * + */ + NODE_TEXT_AREA_SHOW_COUNTER, /** * @brief Defines the maximum number of characters in the text input. * This attribute can be set, reset, and obtained as required through APIs. -- Gitee