{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/21","repository_url":"https://api.github.com/repos/ant-design/ant-design-mobile","labels_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/21/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/21/events","html_url":"https://github.com/ant-design/ant-design-mobile/issues/21","id":168670377,"number":21,"title":"高清化方案讨论","user":{"login":"pingan1927","id":347649,"avatar_url":"https://avatars.githubusercontent.com/u/347649?v=3","gravatar_id":"","url":"https://api.github.com/users/pingan1927","html_url":"https://github.com/pingan1927","followers_url":"https://api.github.com/users/pingan1927/followers","following_url":"https://api.github.com/users/pingan1927/following{/other_user}","gists_url":"https://api.github.com/users/pingan1927/gists{/gist_id}","starred_url":"https://api.github.com/users/pingan1927/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingan1927/subscriptions","organizations_url":"https://api.github.com/users/pingan1927/orgs","repos_url":"https://api.github.com/users/pingan1927/repos","events_url":"https://api.github.com/users/pingan1927/events{/privacy}","received_events_url":"https://api.github.com/users/pingan1927/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ant-design/ant-design-mobile/labels/plan","name":"plan","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"yiminghe","id":200876,"avatar_url":"https://avatars.githubusercontent.com/u/200876?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminghe","html_url":"https://github.com/yiminghe","followers_url":"https://api.github.com/users/yiminghe/followers","following_url":"https://api.github.com/users/yiminghe/following{/other_user}","gists_url":"https://api.github.com/users/yiminghe/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminghe/subscriptions","organizations_url":"https://api.github.com/users/yiminghe/orgs","repos_url":"https://api.github.com/users/yiminghe/repos","events_url":"https://api.github.com/users/yiminghe/events{/privacy}","received_events_url":"https://api.github.com/users/yiminghe/received_events","type":"User","site_admin":false},"assignees":[{"login":"yiminghe","id":200876,"avatar_url":"https://avatars.githubusercontent.com/u/200876?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminghe","html_url":"https://github.com/yiminghe","followers_url":"https://api.github.com/users/yiminghe/followers","following_url":"https://api.github.com/users/yiminghe/following{/other_user}","gists_url":"https://api.github.com/users/yiminghe/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminghe/subscriptions","organizations_url":"https://api.github.com/users/yiminghe/orgs","repos_url":"https://api.github.com/users/yiminghe/repos","events_url":"https://api.github.com/users/yiminghe/events{/privacy}","received_events_url":"https://api.github.com/users/yiminghe/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ant-design/ant-design-mobile/milestones/1","html_url":"https://github.com/ant-design/ant-design-mobile/milestones/1.0","labels_url":"https://api.github.com/repos/ant-design/ant-design-mobile/milestones/1/labels","id":1917377,"number":1,"title":"1.0","description":"","creator":{"login":"yiminghe","id":200876,"avatar_url":"https://avatars.githubusercontent.com/u/200876?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminghe","html_url":"https://github.com/yiminghe","followers_url":"https://api.github.com/users/yiminghe/followers","following_url":"https://api.github.com/users/yiminghe/following{/other_user}","gists_url":"https://api.github.com/users/yiminghe/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminghe/subscriptions","organizations_url":"https://api.github.com/users/yiminghe/orgs","repos_url":"https://api.github.com/users/yiminghe/repos","events_url":"https://api.github.com/users/yiminghe/events{/privacy}","received_events_url":"https://api.github.com/users/yiminghe/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2016-08-02T05:20:43Z","updated_at":"2016-08-15T03:02:26Z","due_on":"2016-08-30T16:00:00Z","closed_at":null},"comments":13,"created_at":"2016-08-01T15:14:29Z","updated_at":"2016-08-15T03:02:26Z","closed_at":"2016-08-15T03:02:26Z","body":"## 代码写 rem\r\n\r\n*  是否将样式单位切换成rem。\r\n*  假设`rem`化，约定1rem换算成多少px？\r\n    *  `AntUI`最近实现的代码里约定了`1rem=100px`。\r\n    *  也有部分实现是约定`1rem=页面宽度/10`，这是为了以后更好地兼容`vw`，`vh`。\r\n    *  今天晚上MR大团队内的代码时，发现有通过mediaQuery设置`1rem=18px`，`1rem=20px`等等的。然后业务代码的样式使用rem单位。\r\n    *  也可以约定`1rem=16px`，这个`html`是默认的`font-size`。\r\n\r\n还有一个问题，组件代码的`1px`高清方案是基于`initial-scale=1`这样的`viewport`设置的，一旦使用`rem`，用户可能就会使用`initial-scale=1/dpr`的高清方案，这个时候，组件的1px可能就变为1/dpr^2了，需要考虑这种情况吗？\r\n\r\n关于是否使用rem，1.0版我们总结一个最后方案吧。越早确定约好\r\n\r\n## 代码写 px\r\n\r\n按照 750 设计稿的标注写 px ，由工具转换成： https://github.com/ant-tool/postcss-plugin-px2rem ，然后经过一些动态页面设置： http://yiminghe.me/lab/playground/2016-exams/6.html 等比缩放."},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/comments/239720320","html_url":"https://github.com/ant-design/ant-design-mobile/issues/21#issuecomment-239720320","issue_url":"https://api.github.com/repos/ant-design/ant-design-mobile/issues/21","id":239720320,"user":{"login":"yiminghe","id":200876,"avatar_url":"https://avatars.githubusercontent.com/u/200876?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminghe","html_url":"https://github.com/yiminghe","followers_url":"https://api.github.com/users/yiminghe/followers","following_url":"https://api.github.com/users/yiminghe/following{/other_user}","gists_url":"https://api.github.com/users/yiminghe/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminghe/subscriptions","organizations_url":"https://api.github.com/users/yiminghe/orgs","repos_url":"https://api.github.com/users/yiminghe/repos","events_url":"https://api.github.com/users/yiminghe/events{/privacy}","received_events_url":"https://api.github.com/users/yiminghe/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T03:02:26Z","updated_at":"2016-08-15T03:02:26Z","body":"确定，方案2"}}
{"actor":{"display_login":"yiminghe"}}