feat:Navigator add extra

This commit is contained in:
pengfei.zhou
2019-12-09 20:32:33 +08:00
parent 276c8c9ef9
commit bf7a22a4d7
10 changed files with 32 additions and 19 deletions

View File

@@ -33,7 +33,7 @@ - (void)viewDidLoad {
[self.view addSubview:it];
}];
[self addChildViewController:panel];
[panel config:jsContent alias:self.filePath];
[panel config:jsContent alias:self.filePath extra:nil];
}
@end

View File

@@ -77,7 +77,9 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
if ([file containsString:@"NavigatorDemo"]) {
DoricViewController *doricViewController = [[DoricViewController alloc]
initWithScheme:[NSString stringWithFormat:@"assets://demo/%@", file]
alias:self.demoFilePaths[(NSUInteger) indexPath.row]];
alias:self.demoFilePaths[(NSUInteger) indexPath.row]
extra:nil
];
[self.navigationController pushViewController:doricViewController animated:NO];
} else {
DemoVC *demoVC = [[DemoVC alloc] initWithPath:file];