{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/3644","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/3644/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/3644/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/3644/events","html_url":"https://github.com/ant-design/ant-design/issues/3644","id":186052264,"number":3644,"title":"upload组件使用问题","user":{"login":"whx76","id":19165238,"avatar_url":"https://avatars.githubusercontent.com/u/19165238?v=3","gravatar_id":"","url":"https://api.github.com/users/whx76","html_url":"https://github.com/whx76","followers_url":"https://api.github.com/users/whx76/followers","following_url":"https://api.github.com/users/whx76/following{/other_user}","gists_url":"https://api.github.com/users/whx76/gists{/gist_id}","starred_url":"https://api.github.com/users/whx76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whx76/subscriptions","organizations_url":"https://api.github.com/users/whx76/orgs","repos_url":"https://api.github.com/users/whx76/repos","events_url":"https://api.github.com/users/whx76/events{/privacy}","received_events_url":"https://api.github.com/users/whx76/received_events","type":"User","site_admin":false},"labels":[{"id":222673469,"url":"https://api.github.com/repos/ant-design/ant-design/labels/Enhancement","name":"Enhancement","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-29T01:38:48Z","updated_at":"2016-11-22T06:28:58Z","closed_at":null,"body":"<!-- Issue Template -->\n\n<!--\nantd 的用法咨询，建议通过以下渠道，官方 issues 目前没有足够精力提供此类咨询服务：\n\n1. [Stack Overflow](http://stackoverflow.com/questions/tagged/antd)\n2. [Segment Fault](https://segmentfault.com/t/antd)（中文）\n3. [Gitter](https://gitter.im/ant-design/ant-design)\n\n如果是报告 bug，请按照下列格式书写，并务必提供复现步骤，否则恕难解决，感谢您的支持。\n-->\n#### 发生问题的环境是：\n\n<!-- 务必提供 -->\n- antd 版本:2.1.0\n- 操作系统及其版本:wind10\n- 浏览器及其版本:chrome54\n#### 您做了什么？请提供尽可能详细的重现步骤。\n\n在uplaod组件上不实现 onPreview及onRemove时，觉得从业务场景上组件对应的不应该有预览图标(或链接文字)及删除按钮。\n\n<!-- 如：引入 antd 了 Button -->\n#### 您期待的结果是:\n\n<!-- 如：像官网一样正常显示 -->\n#### 实际上的结果是:\n\n uplaod组件上不实现 onPreview及onRemove，也会有对应的操作图标及链接，删除点击后会删除。\n\n<!-- 如：样式错位了，最好提供截图 -->\n#### 可重现的在线演示\n\n网站例子不实现删除都如此\n\n<!-- 请修改并 Fork http://codepen.io/benjycui/pen/KgPZrE?editors=001 -->\n"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/262158811","html_url":"https://github.com/ant-design/ant-design/issues/3644#issuecomment-262158811","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/3644","id":262158811,"user":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T06:28:58Z","updated_at":"2016-11-22T06:28:58Z","body":"实际上，用户不实现 onPreview 和  onRemove 时，Upload 也有默认的行为。\r\n\r\n- onPreview：默认新窗口打开（这里有问题）\r\n- onRemove：默认移除文件"}}
{"actor":{"display_login":"afc163"}}