From 8ab6cc18b61bc4e53ae142d6296f8e3cfde4b454 Mon Sep 17 00:00:00 2001 From: wangxiuxiu96 Date: Fri, 29 Aug 2025 19:29:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86showCounter=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E8=AE=A1=E6=95=B0=E6=94=AF=E6=8C=81=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangxiuxiu96 Change-Id: Id16d52f3215e1a9b6f615fa3e54c175fabede1d4 --- arkui/ace_engine/native/native_node.h | 40 +++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index ce5b57eb466..c28ec3bf9b8 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -1044,8 +1044,8 @@ typedef enum { * .value[0].u32 fill color, in 0xARGB format. \n * .value[1].u32: stroke color, in 0xARGB format. \n * .value[2].f32: stroke width, in vp. \n - * .value[3].i32: mask type. The parameter type is {@link ArkUI_MaskType}. - * The value is ARKUI_MASK_TYPE_ELLIPSE for the ellipse shape.\n + * .value[3].i32: mask type. The parameter type is {@link ArkUI_MaskType}. + * The value is ARKUI_MASK_TYPE_ELLIPSE for the ellipse shape.\n * .value[4].f32: width of the ellipse.\n * .value[5].f32: height of the ellipse.\n * 4. Path:\n @@ -3550,7 +3550,7 @@ typedef enum { * */ NODE_TEXT_AREA_TYPE, - /** + /** * @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 @@ -3559,6 +3559,10 @@ typedef enum { * 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: Set the text color of the character counter.The corresponding color is displayed when the + * color is set and the default value is displayed when the color is not set \n + * .value[4].u32: Sets the text color of the character counter when it overflows.The corresponding color is + * displayed when the color is set and the default value is displayed when the color is not set \n * \n * Format of the return value {@link ArkUI_AttributeItem}:\n * .value[0].i32: whether to show a character counter. \n @@ -3567,7 +3571,8 @@ typedef enum { * 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: Set the text color of the character counter. \n + * .value[4].u32: Sets the text color of the character counter when it overflows. \n */ NODE_TEXT_AREA_SHOW_COUNTER, /** @@ -7598,7 +7603,32 @@ typedef enum { * @since 20 */ NODE_TEXT_INPUT_ON_WILL_CHANGE = 7014, - + /** + * @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: Set the text color of the character counter.The corresponding color is displayed when the + * color is set and the default value is displayed when the color is not set \n + *.value[4].u32: Sets the text color of the character counter when it overflows.The corresponding color is + * displayed when the color is set and the default value is displayed when the color is not set \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: Set the text color of the character counter. \n + * .value[4].u32: Sets the text color of the character counter when it overflows. \n + * + */ + NODE_TEXT_INPUT_SHOW_COUNTER = 7015, /** * @brief Defines the event triggered when the input in the text box changes. * -- Gitee