feat:add scrollview on iOS

This commit is contained in:
pengfei.zhou
2019-11-19 11:21:49 +08:00
parent 9a25e14dc9
commit f0430a32a7
13 changed files with 121 additions and 12 deletions

View File

@@ -81,6 +81,9 @@ - (instancetype)initWithContext:(DoricContext *)doricContext {
- (void)initWithSuperNode:(DoricSuperNode *)superNode {
if ([self isKindOfClass:[DoricSuperNode class]]) {
((DoricSuperNode *) self).reusable = superNode.reusable;
}
self.superNode = superNode;
self.view = [[self build] also:^(UIView *it) {
it.layoutConfig = [superNode generateDefaultLayoutParams];