From fa0b56f28a884502d201c248809ba314cf02ff5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B3?= Date: Tue, 31 Dec 2024 11:03:40 +0800 Subject: [PATCH] =?UTF-8?q?List=E4=BF=9D=E6=8C=81=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E5=8F=AF=E8=A7=81=E4=BD=8D=E7=BD=AE=E4=B8=8D?= =?UTF-8?q?=E5=8F=98C-API=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王关 --- arkui/ace_engine/native/native_node.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 888ce7b94e8..1ec19c9acad 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -4940,6 +4940,24 @@ typedef enum { */ NODE_LIST_DIVIDER = 1003009, + /** + * @brief Sets whether to maintain the visible content's position when data is inserted or deleted outside the + * display area of the List component. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: whether to maintain the visible content's position when data is inserted or deleted outside the + * display area of the List component. The value 0 means not to maintain the visible content's + * position, and 1 means the opposite. The default value is 0. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether to maintain the visible content's position when data is inserted or deleted outside the + * display area of the List component. The value 0 means not to maintain the visible content's + * position, and 1 means the opposite. The default value is 0. \n + * + * @since 16 + */ + NODE_LIST_MAINTAIN_VISIBLE_CONTENT_POSITION = 1003013, + /** * @brief Defines whether to enable loop playback for the swiper. * This attribute can be set, reset, and obtained as required through APIs. -- Gitee