From 7665fe95f08f302fa76968ac414250bd7bc455c9 Mon Sep 17 00:00:00 2001 From: yan-shuifeng Date: Tue, 5 Jul 2022 20:27:59 +0800 Subject: [PATCH] add itemcenter and scrollIndex of list in card mode Signed-off-by: yan-shuifeng Change-Id: Ic12cefe8c3249a5c8608f0da205a26b76205009c --- api/form/hml/container/list.json | 51 +++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/api/form/hml/container/list.json b/api/form/hml/container/list.json index ebb1af608d..29236340cd 100644 --- a/api/form/hml/container/list.json +++ b/api/form/hml/container/list.json @@ -410,9 +410,58 @@ "name": "false" } ] + }, + { + "name": "itemcenter", + "syscap": [ + "SystemCapability.ArkUI.ArkUI.Full" + ], + "version": [ + { + "name": "v9.0" + } + ], + "required": false, + "description": [ + { + "name": "Whether there is always an item at the center of the cross axis of the list.", + "syscap": [ + "SystemCapability.ArkUI.ArkUI.Full" + ] + } + ], + "type": "enum", + "options": [ + { + "name": "true" + }, + { + "name": "false" + } + ] + } + ], + "events": [ + { + "name": "scrollIndex", + "syscap": [ + "SystemCapability.ArkUI.ArkUI.Full" + ], + "version": [ + { + "name": "v9.0" + } + ], + "description": [ + { + "name": "Triggered to indicate the index of list item when list is scrolling.", + "syscap": [ + "SystemCapability.ArkUI.ArkUI.Full" + ] + } + ] } ], - "events": [], "supportedSubComponents": true, "supportedSubComponentsRestriction": [ { -- Gitee