{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/1800","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/1800/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/1800/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/1800/events","html_url":"https://github.com/ant-design/ant-design/issues/1800","id":156082046,"number":1800,"title":"Steps组件在Modal中使用，第一次打开Modal时，不显示","user":{"login":"duzliang","id":5643543,"avatar_url":"https://avatars.githubusercontent.com/u/5643543?v=3","gravatar_id":"","url":"https://api.github.com/users/duzliang","html_url":"https://github.com/duzliang","followers_url":"https://api.github.com/users/duzliang/followers","following_url":"https://api.github.com/users/duzliang/following{/other_user}","gists_url":"https://api.github.com/users/duzliang/gists{/gist_id}","starred_url":"https://api.github.com/users/duzliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duzliang/subscriptions","organizations_url":"https://api.github.com/users/duzliang/orgs","repos_url":"https://api.github.com/users/duzliang/repos","events_url":"https://api.github.com/users/duzliang/events{/privacy}","received_events_url":"https://api.github.com/users/duzliang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":10,"created_at":"2016-05-21T03:54:13Z","updated_at":"2016-07-06T22:41:27Z","closed_at":"2016-07-04T09:36:40Z","body":"```jsx\r\nexport default class NewModal extends BaseModal {\r\n  constructor(props) {\r\n    super(props);\r\n    this.state = {\r\n      visible: false,\r\n      currentStep: 0\r\n  }\r\n\r\n  render() {\r\n    const Step = Steps.Step;\r\n \r\n    return (\r\n      <span>\r\n        <Button type=\"primary\"\r\n                onClick={this.showModal}\r\n                className=\"pull-right\">\r\n          add\r\n        </Button>\r\n        <Modal title={<span><Icon type=\"plus\"/> add</span>}\r\n               visible={this.state.visible}\r\n               width='900px'\r\n               onCancel={this.hideModal}\r\n               maskClosable={false}>\r\n          <Steps current={this.state.currentStep}>\r\n            <Step key=\"0\" title=\"title1\" />\r\n            <Step key=\"1\" title=\"title2\" />\r\n            <Step key=\"2\" title=\"title3\" />\r\n          </Steps>\r\n        </Modal>\r\n      </span>\r\n    )\r\n  }\r\n}\r\n```\r\n\r\n1. 在第一次加载的时候有时不显示\r\n2.关闭Modal，重新打开后显示Steps"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/230929137","html_url":"https://github.com/ant-design/ant-design/issues/1800#issuecomment-230929137","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/1800","id":230929137,"user":{"login":"duzliang","id":5643543,"avatar_url":"https://avatars.githubusercontent.com/u/5643543?v=3","gravatar_id":"","url":"https://api.github.com/users/duzliang","html_url":"https://github.com/duzliang","followers_url":"https://api.github.com/users/duzliang/followers","following_url":"https://api.github.com/users/duzliang/following{/other_user}","gists_url":"https://api.github.com/users/duzliang/gists{/gist_id}","starred_url":"https://api.github.com/users/duzliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duzliang/subscriptions","organizations_url":"https://api.github.com/users/duzliang/orgs","repos_url":"https://api.github.com/users/duzliang/repos","events_url":"https://api.github.com/users/duzliang/events{/privacy}","received_events_url":"https://api.github.com/users/duzliang/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T22:41:27Z","updated_at":"2016-07-06T22:41:27Z","body":"之前提供问题的时候未考虑到浏览器的影响"}}
{"actor":{"display_login":"duzliang"}}