diff --git a/components/transfer/index.jsx b/components/transfer/index.jsx index 6287a06d0e..738c17c753 100644 --- a/components/transfer/index.jsx +++ b/components/transfer/index.jsx @@ -144,7 +144,7 @@ class Transfer extends Component { } render() { - const { prefixCls, titles, operations, showSearch, searchPlaceholder, body, footer } = this.props; + const { prefixCls, titles, operations, showSearch, searchPlaceholder, body, footer, boxWidth } = this.props; const { leftFilter, rightFilter, leftCheckedKeys, rightCheckedKeys } = this.state; const { leftDataSource, rightDataSource } = this.splitDataSource(); @@ -158,6 +158,7 @@ class Transfer extends Component { + return (
{this.renderCheckbox({ prefixCls: 'ant-tree', @@ -109,6 +109,7 @@ TransferList.defaultProps = { dataSource: [], showSearch: false, searchPlaceholder: '', + width: 160, handleFilter: noop, handleSelect: noop, handleSelectAll: noop, @@ -123,6 +124,7 @@ TransferList.propTypes = { dataSource: PropTypes.array, showSearch: PropTypes.bool, searchPlaceholder: PropTypes.string, + width: PropTypes.number, handleFilter: PropTypes.func, handleSelect: PropTypes.func, handleSelectAll: PropTypes.func,