lovederh opened a new issue #2817: [iOS]自定义扩展组件时,属性无法传递给原生使用 weex version is 0.18.0 URL: https://github.com/apache/incubator-weex/issues/2817 ` - (instancetype)initWithRef:(NSString *)ref type:(NSString *)type styles:(NSDictionary *)styles attributes:(NSDictionary *)attributes events:(NSArray *)events weexInstance:(WXSDKInstance *)weexInstance { self = [super initWithRef:ref type:type styles:styles attributes:attributes events:events weexInstance:weexInstance]; if (self) { if(attributes[@"url"]){ _url = [WXConvert NSString: attributes[@"url"]]; } NSLog(@"url is %@", _url); } return self; } - (void) updateAttributes:(NSDictionary *)attributes{ if(attributes[@"url"]){ _url = [WXConvert NSString: attributes[@"url"]]; } NSLog(@"url update is %@", _url); } ` 获取url为空 前端组件代码 <hy-player :url="url" style="width:800px;height: 500px" ></hy-player>
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
