{"action":"created","comment":{"url":"https://api.github.com/repos/uiwjs/uiw/pulls/comments/328489389","pull_request_review_id":293554806,"id":328489389,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyODQ4OTM4OQ==","diff_hunk":"@@ -12,6 +12,8 @@ export interface IAvatarProps {\n   src?: string;\n   size?: 'large' | 'default' | 'small' | 'mini';\n   shape?: 'square' | 'circle';\n+  onError?: () => boolean;","path":"src/avatar/index.tsx","position":4,"original_position":4,"commit_id":"0fd08a0e3d91198916122cdf394f88d31eb278d6","original_commit_id":"0fd08a0e3d91198916122cdf394f88d31eb278d6","user":{"login":"xingyuefeng","id":24369183,"node_id":"MDQ6VXNlcjI0MzY5MTgz","avatar_url":"https://avatars2.githubusercontent.com/u/24369183?v=4","gravatar_id":"","url":"https://api.github.com/users/xingyuefeng","html_url":"https://github.com/xingyuefeng","followers_url":"https://api.github.com/users/xingyuefeng/followers","following_url":"https://api.github.com/users/xingyuefeng/following{/other_user}","gists_url":"https://api.github.com/users/xingyuefeng/gists{/gist_id}","starred_url":"https://api.github.com/users/xingyuefeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingyuefeng/subscriptions","organizations_url":"https://api.github.com/users/xingyuefeng/orgs","repos_url":"https://api.github.com/users/xingyuefeng/repos","events_url":"https://api.github.com/users/xingyuefeng/events{/privacy}","received_events_url":"https://api.github.com/users/xingyuefeng/received_events","type":"User","site_admin":false},"body":"@jaywcjlove  \r\n\r\n```\r\n  return (\r\n      <span {...resetProps} className={cls}>\r\n        {children}\r\n      </span>\r\n    );\r\n```\r\n\r\n`resetProps` 已经把`onError`事件传给`span`标签了，假如`span`的子元素`img`显示错误，会执行传给`span`上的`onError` 方法，也就可以操作替换图片了。\r\n","created_at":"2019-09-26T08:17:09Z","updated_at":"2019-09-26T08:17:09Z","html_url":"https://github.com/uiwjs/uiw/pull/73#discussion_r328489389","pull_request_url":"https://api.github.com/repos/uiwjs/uiw/pulls/73","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/uiwjs/uiw/pulls/comments/328489389"},"html":{"href":"https://github.com/uiwjs/uiw/pull/73#discussion_r328489389"},"pull_request":{"href":"https://api.github.com/repos/uiwjs/uiw/pulls/73"}},"in_reply_to_id":328440841},"pull_request":{"url":"https://api.github.com/repos/uiwjs/uiw/pulls/73","id":321508993,"node_id":"MDExOlB1bGxSZXF1ZXN0MzIxNTA4OTkz","html_url":"https://github.com/uiwjs/uiw/pull/73","diff_url":"https://github.com/uiwjs/uiw/pull/73.diff","patch_url":"https://github.com/uiwjs/uiw/pull/73.patch","issue_url":"https://api.github.com/repos/uiwjs/uiw/issues/73","number":73,"state":"open","locked":false,"title":"feat(Avatar): expose onError","user":{"login":"xingyuefeng","id":24369183,"node_id":"MDQ6VXNlcjI0MzY5MTgz","avatar_url":"https://avatars2.githubusercontent.com/u/24369183?v=4","gravatar_id":"","url":"https://api.github.com/users/xingyuefeng","html_url":"https://github.com/xingyuefeng","followers_url":"https://api.github.com/users/xingyuefeng/followers","following_url":"https://api.github.com/users/xingyuefeng/following{/other_user}","gists_url":"https://api.github.com/users/xingyuefeng/gists{/gist_id}","starred_url":"https://api.github.com/users/xingyuefeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingyuefeng/subscriptions","organizations_url":"https://api.github.com/users/xingyuefeng/orgs","repos_url":"https://api.github.com/users/xingyuefeng/repos","events_url":"https://api.github.com/users/xingyuefeng/events{/privacy}","received_events_url":"https://api.github.com/users/xingyuefeng/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-09-26T02:29:16Z","updated_at":"2019-09-26T08:17:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abd70015b3b9ba3660c3146c8b430f5e10a51631","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/uiwjs/uiw/pulls/73/commits","review_comments_url":"https://api.github.com/repos/uiwjs/uiw/pulls/73/comments","review_comment_url":"https://api.github.com/repos/uiwjs/uiw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uiwjs/uiw/issues/73/comments","statuses_url":"https://api.github.com/repos/uiwjs/uiw/statuses/0fd08a0e3d91198916122cdf394f88d31eb278d6","head":{"label":"xingyuefeng:master","ref":"master","sha":"0fd08a0e3d91198916122cdf394f88d31eb278d6","user":{"login":"xingyuefeng","id":24369183,"node_id":"MDQ6VXNlcjI0MzY5MTgz","avatar_url":"https://avatars2.githubusercontent.com/u/24369183?v=4","gravatar_id":"","url":"https://api.github.com/users/xingyuefeng","html_url":"https://github.com/xingyuefeng","followers_url":"https://api.github.com/users/xingyuefeng/followers","following_url":"https://api.github.com/users/xingyuefeng/following{/other_user}","gists_url":"https://api.github.com/users/xingyuefeng/gists{/gist_id}","starred_url":"https://api.github.com/users/xingyuefeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingyuefeng/subscriptions","organizations_url":"https://api.github.com/users/xingyuefeng/orgs","repos_url":"https://api.github.com/users/xingyuefeng/repos","events_url":"https://api.github.com/users/xingyuefeng/events{/privacy}","received_events_url":"https://api.github.com/users/xingyuefeng/received_events","type":"User","site_admin":false},"repo":{"id":130216476,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAyMTY0NzY=","name":"uiw","full_name":"xingyuefeng/uiw","private":false,"owner":{"login":"xingyuefeng","id":24369183,"node_id":"MDQ6VXNlcjI0MzY5MTgz","avatar_url":"https://avatars2.githubusercontent.com/u/24369183?v=4","gravatar_id":"","url":"https://api.github.com/users/xingyuefeng","html_url":"https://github.com/xingyuefeng","followers_url":"https://api.github.com/users/xingyuefeng/followers","following_url":"https://api.github.com/users/xingyuefeng/following{/other_user}","gists_url":"https://api.github.com/users/xingyuefeng/gists{/gist_id}","starred_url":"https://api.github.com/users/xingyuefeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingyuefeng/subscriptions","organizations_url":"https://api.github.com/users/xingyuefeng/orgs","repos_url":"https://api.github.com/users/xingyuefeng/repos","events_url":"https://api.github.com/users/xingyuefeng/events{/privacy}","received_events_url":"https://api.github.com/users/xingyuefeng/received_events","type":"User","site_admin":false},"html_url":"https://github.com/xingyuefeng/uiw","description":"@uiw-react A high quality UI Toolkit, A Component Library for React 16+.","fork":true,"url":"https://api.github.com/repos/xingyuefeng/uiw","forks_url":"https://api.github.com/repos/xingyuefeng/uiw/forks","keys_url":"https://api.github.com/repos/xingyuefeng/uiw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xingyuefeng/uiw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xingyuefeng/uiw/teams","hooks_url":"https://api.github.com/repos/xingyuefeng/uiw/hooks","issue_events_url":"https://api.github.com/repos/xingyuefeng/uiw/issues/events{/number}","events_url":"https://api.github.com/repos/xingyuefeng/uiw/events","assignees_url":"https://api.github.com/repos/xingyuefeng/uiw/assignees{/user}","branches_url":"https://api.github.com/repos/xingyuefeng/uiw/branches{/branch}","tags_url":"https://api.github.com/repos/xingyuefeng/uiw/tags","blobs_url":"https://api.github.com/repos/xingyuefeng/uiw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xingyuefeng/uiw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xingyuefeng/uiw/git/refs{/sha}","trees_url":"https://api.github.com/repos/xingyuefeng/uiw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xingyuefeng/uiw/statuses/{sha}","languages_url":"https://api.github.com/repos/xingyuefeng/uiw/languages","stargazers_url":"https://api.github.com/repos/xingyuefeng/uiw/stargazers","contributors_url":"https://api.github.com/repos/xingyuefeng/uiw/contributors","subscribers_url":"https://api.github.com/repos/xingyuefeng/uiw/subscribers","subscription_url":"https://api.github.com/repos/xingyuefeng/uiw/subscription","commits_url":"https://api.github.com/repos/xingyuefeng/uiw/commits{/sha}","git_commits_url":"https://api.github.com/repos/xingyuefeng/uiw/git/commits{/sha}","comments_url":"https://api.github.com/repos/xingyuefeng/uiw/comments{/number}","issue_comment_url":"https://api.github.com/repos/xingyuefeng/uiw/issues/comments{/number}","contents_url":"https://api.github.com/repos/xingyuefeng/uiw/contents/{+path}","compare_url":"https://api.github.com/repos/xingyuefeng/uiw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xingyuefeng/uiw/merges","archive_url":"https://api.github.com/repos/xingyuefeng/uiw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xingyuefeng/uiw/downloads","issues_url":"https://api.github.com/repos/xingyuefeng/uiw/issues{/number}","pulls_url":"https://api.github.com/repos/xingyuefeng/uiw/pulls{/number}","milestones_url":"https://api.github.com/repos/xingyuefeng/uiw/milestones{/number}","notifications_url":"https://api.github.com/repos/xingyuefeng/uiw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xingyuefeng/uiw/labels{/name}","releases_url":"https://api.github.com/repos/xingyuefeng/uiw/releases{/id}","deployments_url":"https://api.github.com/repos/xingyuefeng/uiw/deployments","created_at":"2018-04-19T13:02:04Z","updated_at":"2019-09-26T02:27:37Z","pushed_at":"2019-09-26T02:27:35Z","git_url":"git://github.com/xingyuefeng/uiw.git","ssh_url":"git@github.com:xingyuefeng/uiw.git","clone_url":"https://github.com/xingyuefeng/uiw.git","svn_url":"https://github.com/xingyuefeng/uiw","homepage":"https://uiw-react.github.io","size":3309,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"uiwjs:master","ref":"master","sha":"6c9f4105fefeb49345ddf9bfbdb6419887ec8ebf","user":{"login":"uiwjs","id":33082374,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzMDgyMzc0","avatar_url":"https://avatars1.githubusercontent.com/u/33082374?v=4","gravatar_id":"","url":"https://api.github.com/users/uiwjs","html_url":"https://github.com/uiwjs","followers_url":"https://api.github.com/users/uiwjs/followers","following_url":"https://api.github.com/users/uiwjs/following{/other_user}","gists_url":"https://api.github.com/users/uiwjs/gists{/gist_id}","starred_url":"https://api.github.com/users/uiwjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uiwjs/subscriptions","organizations_url":"https://api.github.com/users/uiwjs/orgs","repos_url":"https://api.github.com/users/uiwjs/repos","events_url":"https://api.github.com/users/uiwjs/events{/privacy}","received_events_url":"https://api.github.com/users/uiwjs/received_events","type":"Organization","site_admin":false},"repo":{"id":108403413,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg0MDM0MTM=","name":"uiw","full_name":"uiwjs/uiw","private":false,"owner":{"login":"uiwjs","id":33082374,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzMDgyMzc0","avatar_url":"https://avatars1.githubusercontent.com/u/33082374?v=4","gravatar_id":"","url":"https://api.github.com/users/uiwjs","html_url":"https://github.com/uiwjs","followers_url":"https://api.github.com/users/uiwjs/followers","following_url":"https://api.github.com/users/uiwjs/following{/other_user}","gists_url":"https://api.github.com/users/uiwjs/gists{/gist_id}","starred_url":"https://api.github.com/users/uiwjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uiwjs/subscriptions","organizations_url":"https://api.github.com/users/uiwjs/orgs","repos_url":"https://api.github.com/users/uiwjs/repos","events_url":"https://api.github.com/users/uiwjs/events{/privacy}","received_events_url":"https://api.github.com/users/uiwjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/uiwjs/uiw","description":"⚛️@uiwjs A high quality UI Toolkit, A Component Library for React 16+.","fork":false,"url":"https://api.github.com/repos/uiwjs/uiw","forks_url":"https://api.github.com/repos/uiwjs/uiw/forks","keys_url":"https://api.github.com/repos/uiwjs/uiw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uiwjs/uiw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uiwjs/uiw/teams","hooks_url":"https://api.github.com/repos/uiwjs/uiw/hooks","issue_events_url":"https://api.github.com/repos/uiwjs/uiw/issues/events{/number}","events_url":"https://api.github.com/repos/uiwjs/uiw/events","assignees_url":"https://api.github.com/repos/uiwjs/uiw/assignees{/user}","branches_url":"https://api.github.com/repos/uiwjs/uiw/branches{/branch}","tags_url":"https://api.github.com/repos/uiwjs/uiw/tags","blobs_url":"https://api.github.com/repos/uiwjs/uiw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uiwjs/uiw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uiwjs/uiw/git/refs{/sha}","trees_url":"https://api.github.com/repos/uiwjs/uiw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uiwjs/uiw/statuses/{sha}","languages_url":"https://api.github.com/repos/uiwjs/uiw/languages","stargazers_url":"https://api.github.com/repos/uiwjs/uiw/stargazers","contributors_url":"https://api.github.com/repos/uiwjs/uiw/contributors","subscribers_url":"https://api.github.com/repos/uiwjs/uiw/subscribers","subscription_url":"https://api.github.com/repos/uiwjs/uiw/subscription","commits_url":"https://api.github.com/repos/uiwjs/uiw/commits{/sha}","git_commits_url":"https://api.github.com/repos/uiwjs/uiw/git/commits{/sha}","comments_url":"https://api.github.com/repos/uiwjs/uiw/comments{/number}","issue_comment_url":"https://api.github.com/repos/uiwjs/uiw/issues/comments{/number}","contents_url":"https://api.github.com/repos/uiwjs/uiw/contents/{+path}","compare_url":"https://api.github.com/repos/uiwjs/uiw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uiwjs/uiw/merges","archive_url":"https://api.github.com/repos/uiwjs/uiw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uiwjs/uiw/downloads","issues_url":"https://api.github.com/repos/uiwjs/uiw/issues{/number}","pulls_url":"https://api.github.com/repos/uiwjs/uiw/pulls{/number}","milestones_url":"https://api.github.com/repos/uiwjs/uiw/milestones{/number}","notifications_url":"https://api.github.com/repos/uiwjs/uiw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uiwjs/uiw/labels{/name}","releases_url":"https://api.github.com/repos/uiwjs/uiw/releases{/id}","deployments_url":"https://api.github.com/repos/uiwjs/uiw/deployments","created_at":"2017-10-26T11:39:32Z","updated_at":"2019-09-25T09:14:48Z","pushed_at":"2019-09-26T02:29:17Z","git_url":"git://github.com/uiwjs/uiw.git","ssh_url":"git@github.com:uiwjs/uiw.git","clone_url":"https://github.com/uiwjs/uiw.git","svn_url":"https://github.com/uiwjs/uiw","homepage":"https://uiwjs.github.io","size":22112,"stargazers_count":413,"watchers_count":413,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":68,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":68,"open_issues":4,"watchers":413,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uiwjs/uiw/pulls/73"},"html":{"href":"https://github.com/uiwjs/uiw/pull/73"},"issue":{"href":"https://api.github.com/repos/uiwjs/uiw/issues/73"},"comments":{"href":"https://api.github.com/repos/uiwjs/uiw/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/uiwjs/uiw/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/uiwjs/uiw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uiwjs/uiw/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/uiwjs/uiw/statuses/0fd08a0e3d91198916122cdf394f88d31eb278d6"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"xingyuefeng"}}