feat:The same VC use diffrent childVC
This commit is contained in:
@@ -20,11 +20,13 @@
|
||||
#import "DoricPanel.h"
|
||||
#import "Doric.h"
|
||||
|
||||
|
||||
@implementation DoricPanel
|
||||
|
||||
- (void)config:(NSString *)script alias:(NSString *)alias {
|
||||
self.doricContext = [[[DoricContext alloc] initWithScript:script source:alias] also:^(DoricContext *it) {
|
||||
if ([self.parentViewController conformsToProtocol:@protocol(DoricNavigatorProtocol)]) {
|
||||
it.navigator = (id <DoricNavigatorProtocol>) self.parentViewController;
|
||||
}
|
||||
[it.rootNode setupRootView:[[DoricStackView new] also:^(DoricStackView *it) {
|
||||
it.width = self.view.width;
|
||||
it.height = self.view.height;
|
||||
@@ -43,4 +45,5 @@ - (void)viewDidDisappear:(BOOL)animated {
|
||||
[super viewDidDisappear:animated];
|
||||
[self.doricContext onHidden];
|
||||
}
|
||||
@end
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user