Ian Gong
Ian Gong
请问你是说,web业务代码怎么请求API,并得到Response的吗? 关于API的请求,和普通的web页面一样,你可以发起一个ajax请求,Container的工作只是拦截这个请求,带上服务端需要的验证信息,仅此而已。你可以像正常的写前端的方式去处理请求。
1. 在 Rexxar 中 Widget 的实现确实是通过 iframe,本质上和JavascriptBridge一样。 2. Rexxar 还有另外一种数据服务,ContainerAPI,是通过NSURLProtocol拦截请求来实现的,用来提供一些基础的数据支持,譬如Geo信息。
@epicfaace could you check this quick fix please? We are using this library extensively in our projects😄 Thanks!
@epicfaace Sure. Putting it in `extra` will be like If there is some error:
If we put it in the `tooltip`, the description will appear when we hover over the question mark next to the title
@epicfaace It looks OK for other themes since the description is right below the input: While it's confusing for antd. IMO it's a bit hard to tell whether the description...
Updates on this: 1. Check `rawDescription` before using `description` to ensure we don't show question mark when there's no description 2. Upgrade `antd` dependencies to `4.7.0` for tooltip support
@epicfaace Is there a way to put a global `ui:options` so that we don't need to write it in each field, or could we put `descriptionLocation` in formContext?
@epicfaace I reverted `antd` upgrade and added `descriptionLocation` in `formContext`, please review. Thanks!
Hi, @epicfaace , I've updated this based on your comments, does it looks good to you?