feat:Slider add scrollable

This commit is contained in:
pengfei.zhou
2021-04-23 17:55:59 +08:00
committed by osborn
parent c2ca3c0b31
commit 056f2f041f
3 changed files with 22 additions and 2 deletions

View File

@@ -75,7 +75,9 @@ - (UICollectionView *)build {
}
- (void)blendView:(UICollectionView *)view forPropName:(NSString *)name propValue:(id)prop {
if ([@"itemCount" isEqualToString:name]) {
if ([@"scrollable" isEqualToString:name]) {
self.view.scrollEnabled = [prop boolValue];
} else if ([@"itemCount" isEqualToString:name]) {
self.itemCount = [prop unsignedIntegerValue];
[self.view reloadData];
} else if ([@"renderPage" isEqualToString:name]) {