{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/10201","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/10201/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/10201/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/10201/events","html_url":"https://github.com/ant-design/ant-design/issues/10201","id":316762067,"number":10201,"title":"pagination组件能不能增加一个goButton按钮？？我看依赖组件里面有这个参数","user":{"login":"Mr-SPM","id":25722226,"avatar_url":"https://avatars1.githubusercontent.com/u/25722226?v=4","gravatar_id":"","url":"https://api.github.com/users/Mr-SPM","html_url":"https://github.com/Mr-SPM","followers_url":"https://api.github.com/users/Mr-SPM/followers","following_url":"https://api.github.com/users/Mr-SPM/following{/other_user}","gists_url":"https://api.github.com/users/Mr-SPM/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-SPM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-SPM/subscriptions","organizations_url":"https://api.github.com/users/Mr-SPM/orgs","repos_url":"https://api.github.com/users/Mr-SPM/repos","events_url":"https://api.github.com/users/Mr-SPM/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-SPM/received_events","type":"User","site_admin":false},"labels":[{"id":571726996,"url":"https://api.github.com/repos/ant-design/ant-design/labels/Invalid","name":"Invalid","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-23T10:59:22Z","updated_at":"2018-04-23T10:59:23Z","closed_at":"2018-04-23T10:59:23Z","author_association":"NONE","body":"```js\r\n// rc-pagination/ Options.js 里面有一段代码关于GoButton的配置\r\nvalue: function render() {\r\n      var props = this.props;\r\n      var state = this.state;\r\n      var locale = props.locale;\r\n      var prefixCls = props.rootPrefixCls + '-options';\r\n      var changeSize = props.changeSize;\r\n      var quickGo = props.quickGo;\r\n     var goButton = props.goButton;\r\n···\r\nif (quickGo) {\r\n        if (goButton) {\r\n          if (typeof goButton === 'boolean') {\r\n            gotoButton = _react2['default'].createElement(\r\n              'button',\r\n              {\r\n                type: 'button',\r\n                onClick: this.go,\r\n                onKeyUp: this.go\r\n              },\r\n              locale.jump_to_confirm\r\n            );\r\n          } else {\r\n            gotoButton = _react2['default'].createElement(\r\n              'span',\r\n              {\r\n                onClick: this.go,\r\n                onKeyUp: this.go\r\n              },\r\n              goButton\r\n            );\r\n          }\r\n        }\r\n        goInput = _react2['default'].createElement(\r\n          'div',\r\n          { className: prefixCls + '-quick-jumper' },\r\n          locale.jump_to,\r\n          _react2['default'].createElement('input', {\r\n            type: 'text',\r\n            value: state.goInputText,\r\n            onChange: this.handleChange,\r\n            onKeyUp: this.go\r\n          }),\r\n          locale.page,\r\n          gotoButton\r\n        );\r\n      }\r\n\r\n```\r\n\r\n实际我配置了goButton参数，还是无法传递到该参数。\r\n"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/383536224","html_url":"https://github.com/ant-design/ant-design/issues/10201#issuecomment-383536224","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/10201","id":383536224,"user":{"login":"ant-design-bot","id":26566442,"avatar_url":"https://avatars0.githubusercontent.com/u/26566442?v=4","gravatar_id":"","url":"https://api.github.com/users/ant-design-bot","html_url":"https://github.com/ant-design-bot","followers_url":"https://api.github.com/users/ant-design-bot/followers","following_url":"https://api.github.com/users/ant-design-bot/following{/other_user}","gists_url":"https://api.github.com/users/ant-design-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design-bot/subscriptions","organizations_url":"https://api.github.com/users/ant-design-bot/orgs","repos_url":"https://api.github.com/users/ant-design-bot/repos","events_url":"https://api.github.com/users/ant-design-bot/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design-bot/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T10:59:23Z","updated_at":"2018-04-23T10:59:23Z","author_association":"NONE","body":"Translation of this issue:\n\n<hr/>\n\n## How can a pagination component add a goButton button? ? I see this parameter in the dependent component\n\n```js\r\n// rc-pagination/ Options.js has a section of code about GoButton configuration\r\nValue: function render() {\r\n      Var props = this.props;\r\n      Var state = this.state;\r\n      Var locale = props.locale;\r\n      Var prefixCls = props.rootPrefixCls + '-options';\r\n      Var changeSize = props.changeSize;\r\n      Var quickGo = props.quickGo;\r\n     Var goButton = props.goButton;\r\n···\r\nIf (quickGo) {\r\n        If (goButton) {\r\n          If (typeof goButton === 'boolean') {\r\n            gotoButton = _react2['default'].createElement(\r\n              'button',\r\n              {\r\n                Type: 'button',\r\n                onClick: this.go,\r\n                onKeyUp: this.go\r\n              },\r\n              Locale.jump_to_confirm\r\n            );\r\n          } Else {\r\n            gotoButton = _react2['default'].createElement(\r\n              'span',\r\n              {\r\n                onClick: this.go,\r\n                onKeyUp: this.go\r\n              },\r\n              goButton\r\n            );\r\n          }\r\n        }\r\n        goInput = _react2['default'].createElement(\r\n          'div',\r\n          { className: prefixCls + '-quick-jumper' },\r\n          Locale.jump_to,\r\n          _react2['default'].createElement('input', {\r\n            Type: 'text',\r\n            Value: state.goInputText,\r\n            onChange: this.handleChange,\r\n            onKeyUp: this.go\r\n          }),\r\n          Locale.page,\r\n          gotoButton\r\n        );\r\n      }\r\n\r\n```\r\n\r\nActually I configured the goButton parameter, or could not be passed to this parameter."}}
{"actor":{"display_login":"ant-design-bot"}}