From 54acc5605c3b268a5dc952f26acd96691ced0e03 Mon Sep 17 00:00:00 2001 From: yyuanche Date: Wed, 19 Jul 2023 16:24:03 +0800 Subject: [PATCH] =?UTF-8?q?xts=E9=80=82=E9=85=8DListItem=E9=95=BF=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB=E5=88=92=E5=8A=A8=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=20Signed-off-by:=20yyuanche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/ets/TestAbility/pages/ListDelete.ets | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arkui/ace_ets_component_api/src/main/ets/TestAbility/pages/ListDelete.ets b/arkui/ace_ets_component_api/src/main/ets/TestAbility/pages/ListDelete.ets index c59e94370..399c3ed1f 100644 --- a/arkui/ace_ets_component_api/src/main/ets/TestAbility/pages/ListDelete.ets +++ b/arkui/ace_ets_component_api/src/main/ets/TestAbility/pages/ListDelete.ets @@ -121,16 +121,15 @@ struct ListDelete { } .swipeAction({ end: { builder: this.itemEnd.bind(this, index, 'MyList5'), - onDelete: () => { - console.info('MyList5_ListItem' + index + ' onDelete') + onAction: () => { + console.info('MyList5_ListItem' + index + ' onAction') this.arr2.splice(index, 1) - MyUtils.sendEvent('MyList5_ListItem' + index + 'onDelete', 72000) + MyUtils.sendEvent('MyList5_ListItem' + index + 'onAction', 72000) }, - deleteAreaDistance: 5, - useDefaultDeleteAnimation: true, - onEnterDeleteArea: () => { + actionAreaDistance: 5, + onEnterActionArea: () => { }, - onExitDeleteArea: () => { + onExitActionArea: () => { } } }) -- GitLab