feat:slider add reset action

This commit is contained in:
pengfei.zhou 2022-07-15 19:21:33 +08:00 committed by osborn
parent e1bb564d14
commit c367b93121
2 changed files with 6 additions and 0 deletions

View File

@ -301,6 +301,9 @@ public class SliderNode extends SuperNode<RecyclerView> {
scrollable = true;
onPageSlidedFuncId = null;
renderPageFuncId = null;
slideStyle = null;
minScale = .618f;
maxScale = 1.f;
}
private static class DoricLinearSmoothScroller extends LinearSmoothScroller {

View File

@ -349,6 +349,9 @@ - (void)reset {
self.onPageSelectedFuncId = nil;
self.propRenderPageFuncId = nil;
self.renderPageFuncId = nil;
self.slideStyle = nil;
self.minScale = .618f;
self.maxScale = 1.f;
}
- (void)subNodeContentChanged:(DoricViewNode *)subNode {