feat:List support scrollable

This commit is contained in:
pengfei.zhou
2021-04-23 17:46:39 +08:00
committed by osborn
parent 4cc67a463d
commit 418b71c7a3
3 changed files with 24 additions and 2 deletions

View File

@@ -89,7 +89,9 @@ - (UITableView *)build {
}
- (void)blendView:(UITableView *)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 ([@"renderItem" isEqualToString:name]) {