From cd24f3d5663cfb737909e040a7c148eca940d2ad Mon Sep 17 00:00:00 2001 From: SimaQ Date: Thu, 29 Oct 2015 08:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Input.jsx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/form/Input.jsx | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/components/form/Input.jsx b/components/form/Input.jsx index 07821b061b..a9673cde3f 100644 --- a/components/form/Input.jsx +++ b/components/form/Input.jsx @@ -27,20 +27,6 @@ Group.defaultProps = { class Input extends React.Component { - getInputDOMNode() { - return this.refs.input; - } - - getValue() { - if (this.props.type === 'static') { - return this.props.value; - } else if (this.props.type) { - return this.getInputDOMNode().value; - } - - throw new Error('Cannot use getValue without specifying input type.'); - } - renderLabledInput(children) { const props = this.props; const wrapperClassName = prefixClsFn(props.prefixCls, 'input-group'); @@ -83,12 +69,6 @@ class Input extends React.Component { switch (props.type) { case 'textarea': return