Skip to content

Commit

Permalink
* [iOS] change 'vRef' to 'ref'
Browse files Browse the repository at this point in the history
  • Loading branch information
doumafang authored and YorkShen committed Aug 2, 2018
1 parent 184a36a commit b57f48a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ - (void)_componentInfoOfRef:(WXComponent *)component subInfo:(NSMutableDictionar
NSIndexPath *indexPath = data[@"item"][@"indexPath"];
NSUInteger position = [indexPath indexAtPosition:1];
NSString *virtalElementInfo = [NSString stringWithFormat:@"%@@%lu",component.ref,position];
NSDictionary *refInfo = @{@"attrs":component.attributes,@"type":component->_type,@"vRef":virtalElementInfo,@"[[VirtualElement]]":@"true"};
NSDictionary *refInfo = @{@"attrs":component.attributes,@"type":component->_type,@"ref":virtalElementInfo,@"[[VirtualElement]]":@"true"};
if (subInfo[component.attributes[@"ref"]]) {
[subInfo[component.attributes[@"ref"]] addObject:refInfo];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ - (NSDictionary *)_closestComponentForCSSSelector:(NSString *)cssSelector compon
{
WXComponent *supercomponent = component.supercomponent;
if ([self _parseCssSelector:cssSelector component:supercomponent]) {
NSDictionary *info = @{@"attrs":supercomponent.attributes,@"type":supercomponent->_type,@"vRef":supercomponent.ref};
NSDictionary *info = @{@"attrs":supercomponent.attributes,@"type":supercomponent->_type,@"ref":supercomponent.ref};
return info;
}
else
Expand Down

0 comments on commit b57f48a

Please sign in to comment.