iOS:refact requestLayout logic

This commit is contained in:
pengfei.zhou
2020-04-08 11:57:38 +08:00
committed by osborn
parent 95d9158fac
commit b17ff48c59
11 changed files with 27 additions and 46 deletions

View File

@@ -31,7 +31,6 @@ @implementation DoricRefreshableNode
- (DoricSwipeRefreshLayout *)build {
return [[DoricSwipeRefreshLayout new] also:^(DoricSwipeRefreshLayout *it) {
it.swipePullingDelegate = self;
}];
}
@@ -62,8 +61,7 @@ - (DoricViewNode *)subNodeWithViewId:(NSString *)viewId {
}
}
- (void)blend:(NSDictionary *)props {
[super blend:props];
- (void)afterBlended:(NSDictionary *)props {
[self blendContent];
[self blendHeader];
}
@@ -102,6 +100,7 @@ - (void)blendContent {
self.view.contentView = it.view;
}];
}
[self.view.contentView.doricLayout apply:self.view.frame.size];
}
- (void)blendHeader {
@@ -138,6 +137,7 @@ - (void)blendHeader {
self.view.headerView = it.view;
}];
}
[self.view.headerView.doricLayout apply:self.view.frame.size];
}
- (void)blendSubNode:(NSDictionary *)subModel {