如何写精华回答,获更多曝光?
 发布
 
Column({ space: 10 }) {
  List({ space: 10 }) {
    ForEach(this.getTaskList, (item: TaskModel) => { 
      ListItem() {
        this.TaskItem(item)  
      }
      .swipeAction({end: this.DeleteButton(item.taskId)})
    }, (item: TaskModel) => JSON.stringify(item))  
  }
  .width('100%')  
  .height('100%')
  .alignListItem(ListItemAlign.Center)}
  .margin({top: 5, bottom: 5})
}怎么才能监听 swipeAction 侧滑出现view时候的事件