feat:add maxLines

This commit is contained in:
pengfei.zhou 2019-12-10 14:37:04 +08:00
parent 3d403d5178
commit f8a420b427
3 changed files with 4 additions and 1 deletions

View File

@ -86,6 +86,7 @@ - (UITableView *)build {
it.dataSource = self;
it.delegate = self;
it.separatorStyle = UITableViewCellSeparatorStyleNone;
it.allowsSelection = NO;
}];
}

View File

@ -48,6 +48,8 @@ - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)pro
alignment = NSTextAlignmentRight;
}
view.textAlignment = alignment;
} else if ([name isEqualToString:@"maxLines"]) {
view.numberOfLines = [prop integerValue];
} else {
[super blendView:view forPropName:name propValue:prop];
}