feat:Scroller add contentOffset property

This commit is contained in:
pengfei.zhou
2020-03-03 13:23:06 +08:00
committed by osborn
parent 46255632ec
commit 6d7562877e
12 changed files with 314 additions and 265 deletions

View File

@@ -107,6 +107,10 @@ - (void)blend:(NSDictionary *)props {
self.view.contentView = it.view;
}];
}
if (props[@"contentOffset"]) {
NSDictionary *prop = props[@"contentOffset"];
self.view.contentOffset = CGPointMake([prop[@"x"] floatValue], [prop[@"y"] floatValue]);
}
}
- (void)blendView:(DoricScrollView *)view forPropName:(NSString *)name propValue:(id)prop {