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 c59e94370813d8d7fafa31bb6fd8fd463f6dde56..399c3ed1fa53887ae0beecaf082a72c805ff46ce 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: () => { } } })