{"action":"opened","issue":{"url":"https://api.github.com/repos/uxcore/uxcore-dialog/issues/11","repository_url":"https://api.github.com/repos/uxcore/uxcore-dialog","labels_url":"https://api.github.com/repos/uxcore/uxcore-dialog/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/uxcore/uxcore-dialog/issues/11/comments","events_url":"https://api.github.com/repos/uxcore/uxcore-dialog/issues/11/events","html_url":"https://github.com/uxcore/uxcore-dialog/issues/11","id":149739820,"number":11,"title":"打包后this.props.visible 在IE9中 visible 未定义","user":{"login":"kangning1206","id":6220088,"avatar_url":"https://avatars.githubusercontent.com/u/6220088?v=3","gravatar_id":"","url":"https://api.github.com/users/kangning1206","html_url":"https://github.com/kangning1206","followers_url":"https://api.github.com/users/kangning1206/followers","following_url":"https://api.github.com/users/kangning1206/following{/other_user}","gists_url":"https://api.github.com/users/kangning1206/gists{/gist_id}","starred_url":"https://api.github.com/users/kangning1206/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kangning1206/subscriptions","organizations_url":"https://api.github.com/users/kangning1206/orgs","repos_url":"https://api.github.com/users/kangning1206/repos","events_url":"https://api.github.com/users/kangning1206/events{/privacy}","received_events_url":"https://api.github.com/users/kangning1206/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-20T11:22:08Z","updated_at":"2016-04-20T11:22:08Z","closed_at":null,"body":"现在源码：\r\n```\r\nconstructor(props) {\r\n        super(props);\r\n        this.state = {\r\n            confirmLoading: false,\r\n            visible: this.props.visible\r\n        };\r\n    }\r\n\r\n```\r\n改进后：\r\n```\r\nconstructor(props) {\r\n        super(props);\r\n        this.state = {\r\n            confirmLoading: false,\r\n            visible: props.visible\r\n        };\r\n    }\r\n```\r\n\r\n是不是constructor 直接使用props.visible即可，没必要this.props.visible，可能觉得奇怪，为什么之前没遇到这种错误呢，近期uxcore组件打包工具 gulp lib 也在升级，可能与打包有关系；"}}