{"action":"created","issue":{"url":"https://api.github.com/repos/eleme/hybridAPI/issues/58","repository_url":"https://api.github.com/repos/eleme/hybridAPI","labels_url":"https://api.github.com/repos/eleme/hybridAPI/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/eleme/hybridAPI/issues/58/comments","events_url":"https://api.github.com/repos/eleme/hybridAPI/issues/58/events","html_url":"https://github.com/eleme/hybridAPI/issues/58","id":250552974,"number":58,"title":"hybridAPI NavBar 参数","user":{"login":"banricho","id":7817228,"avatar_url":"https://avatars1.githubusercontent.com/u/7817228?v=4","gravatar_id":"","url":"https://api.github.com/users/banricho","html_url":"https://github.com/banricho","followers_url":"https://api.github.com/users/banricho/followers","following_url":"https://api.github.com/users/banricho/following{/other_user}","gists_url":"https://api.github.com/users/banricho/gists{/gist_id}","starred_url":"https://api.github.com/users/banricho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banricho/subscriptions","organizations_url":"https://api.github.com/users/banricho/orgs","repos_url":"https://api.github.com/users/banricho/repos","events_url":"https://api.github.com/users/banricho/events{/privacy}","received_events_url":"https://api.github.com/users/banricho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-16T08:43:55Z","updated_at":"2017-08-16T08:50:24Z","closed_at":null,"body":"由于 UED 对于导航栏的设计不断提出更多要求，导致 scheme 拥有多个版本，并且强依赖入口配置。\r\n\r\nhybirdAPI.setNavStyle 提供给了页面主动设置导航栏的能力，我们希望给予它一个较为丰富的配置项，以应对各种情况。\r\n\r\n## 可能需要的配置功能\r\n\r\n### 模式\r\n\r\n1. 沉浸\r\n2. 非沉浸\r\n\r\n### 初始状态\r\n\r\n1. 颜色：渐变角度、渐变起始颜色（透明度）、渐变终止颜色（透明度）。\r\n2. 文字颜色：统一设置所有的 status bar / nav bar / back button / right menu 的颜色，只需要纯色。\r\n\r\n### 滚动后状态\r\n\r\n1. 颜色：渐变角度、渐变起始颜色（透明度）、渐变终止颜色（透明度）。\r\n2. 文字颜色：统一设置所有的 status bar / nav bar / back button / right menu 的颜色，只需要纯色。\r\n\r\n## 细节\r\n\r\n1. 参数非必传，如果不传某参数，则忽略该参数的设置（保持原本的不变）。如果以后需求改动，需要默认值，前端也可以在 hybridAPI 的 JS 层去做，不需要涉及 native 版本发布。\r\n2. 滚动后状态如果不设置，也同上规则，如果需要保持和初始状态一致，也可以由 JS 层去做。\r\n3. 正常情况下，页面不会随意改变沉浸或非沉浸（因为会造成页面跳动），所以这个设置项单独与初始和滚动后状态。\r\n4. 如果可以的话，希望能够加上何时触发滚动后状态（即触发高度）。\r\n5. 如果 iOS 全量更换为 WKWebview 的话，理论上滚动高度和滚动后状态都可以由前端自己判断去写（因为 UIWebview 滚动时不执行 JS）。"},"comment":{"url":"https://api.github.com/repos/eleme/hybridAPI/issues/comments/322707383","html_url":"https://github.com/eleme/hybridAPI/issues/58#issuecomment-322707383","issue_url":"https://api.github.com/repos/eleme/hybridAPI/issues/58","id":322707383,"user":{"login":"WittBulter","id":11304944,"avatar_url":"https://avatars3.githubusercontent.com/u/11304944?v=4","gravatar_id":"","url":"https://api.github.com/users/WittBulter","html_url":"https://github.com/WittBulter","followers_url":"https://api.github.com/users/WittBulter/followers","following_url":"https://api.github.com/users/WittBulter/following{/other_user}","gists_url":"https://api.github.com/users/WittBulter/gists{/gist_id}","starred_url":"https://api.github.com/users/WittBulter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WittBulter/subscriptions","organizations_url":"https://api.github.com/users/WittBulter/orgs","repos_url":"https://api.github.com/users/WittBulter/repos","events_url":"https://api.github.com/users/WittBulter/events{/privacy}","received_events_url":"https://api.github.com/users/WittBulter/received_events","type":"User","site_admin":false},"created_at":"2017-08-16T08:50:24Z","updated_at":"2017-08-16T08:50:24Z","body":"建议文档严谨一点，现在 `API` 支持到哪个版本、可选与必选、数据类型等等都靠口耳相传 😂 "}}
{"actor":{"display_login":"WittBulter"}}