1. private scrollerForList: ListScroller = new ListScroller(); 2. List({ scroller: this.scrollerForList }){} 3.在需要关闭侧滑效果的地方,调this.scrollerForList.closeAllSwipeActions();
具体可参考链接:
1. private scrollerForList: ListScroller = new ListScroller(); 2. List({ scroller: this.scrollerForList }){} 3.在需要关闭侧滑效果的地方,调this.scrollerForList.closeAllSwipeActions();
具体可参考链接: