{"action":"created","issue":{"url":"https://api.github.com/repos/weui/react-weui/issues/7","labels_url":"https://api.github.com/repos/weui/react-weui/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/weui/react-weui/issues/7/comments","events_url":"https://api.github.com/repos/weui/react-weui/issues/7/events","html_url":"https://github.com/weui/react-weui/issues/7","id":122461043,"number":7,"title":"Toast 组件用方法调用似乎不符合 React 哲学","user":{"login":"cncolder","id":127009,"avatar_url":"https://avatars.githubusercontent.com/u/127009?v=3","gravatar_id":"","url":"https://api.github.com/users/cncolder","html_url":"https://github.com/cncolder","followers_url":"https://api.github.com/users/cncolder/followers","following_url":"https://api.github.com/users/cncolder/following{/other_user}","gists_url":"https://api.github.com/users/cncolder/gists{/gist_id}","starred_url":"https://api.github.com/users/cncolder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cncolder/subscriptions","organizations_url":"https://api.github.com/users/cncolder/orgs","repos_url":"https://api.github.com/users/cncolder/repos","events_url":"https://api.github.com/users/cncolder/events{/privacy}","received_events_url":"https://api.github.com/users/cncolder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-16T09:21:26Z","updated_at":"2015-12-17T05:03:16Z","closed_at":null,"body":"之前 n7 的设计是用 `show` 属性控制显示, 个人更喜欢之前的设计.\r\n用属性控制显示的好处是属性可以接受 `state` 或其他 `store` 传递来的数据."},"comment":{"url":"https://api.github.com/repos/weui/react-weui/issues/comments/165338112","html_url":"https://github.com/weui/react-weui/issues/7#issuecomment-165338112","issue_url":"https://api.github.com/repos/weui/react-weui/issues/7","id":165338112,"user":{"login":"progrape","id":4652816,"avatar_url":"https://avatars.githubusercontent.com/u/4652816?v=3","gravatar_id":"","url":"https://api.github.com/users/progrape","html_url":"https://github.com/progrape","followers_url":"https://api.github.com/users/progrape/followers","following_url":"https://api.github.com/users/progrape/following{/other_user}","gists_url":"https://api.github.com/users/progrape/gists{/gist_id}","starred_url":"https://api.github.com/users/progrape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progrape/subscriptions","organizations_url":"https://api.github.com/users/progrape/orgs","repos_url":"https://api.github.com/users/progrape/repos","events_url":"https://api.github.com/users/progrape/events{/privacy}","received_events_url":"https://api.github.com/users/progrape/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T05:03:16Z","updated_at":"2015-12-17T05:03:16Z","body":"组件简单的话，组件内维护一个`state`，通过方法暴露，并没有什么大问题。不过可以像两位说的那样，统一使用属性往下传递的方式来进行，保持简单、统一~"}}