diff --git a/components/transfer/operation.jsx b/components/transfer/operation.jsx index ac63584f92..13d426976d 100644 --- a/components/transfer/operation.jsx +++ b/components/transfer/operation.jsx @@ -7,13 +7,39 @@ function noop() { class TransferOperation extends Component { render() { - const { moveToLeft, moveToRight, leftArrowText, rightArrowText, leftActive, rightActive, prefixCls, height } = this.props; + const { + moveToLeft, + moveToRight, + leftArrowText, + rightArrowText, + leftActive, + rightActive, + prefixCls, + } = this.props; - return
- { rightArrowText ? : - } - {leftArrowText ? : - } + const moveToLeftButton = ( + + ); + + const moveToRightButton = ( + + ); + + return
+ {moveToLeftButton} + {moveToRightButton}
; } } @@ -22,7 +48,6 @@ TransferOperation.defaultProps = { prefixCls: 'ant-transfer-operation', leftArrowText: '', rightArrowText: '', - height: 150, moveToLeft: noop, moveToRight: noop, };