fix: Transfer list direction value (#31903)

This commit is contained in:
xrkffgg 2021-08-26 01:03:53 +08:00 committed by GitHub
parent 1e9b90c599
commit 7e50344676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ class Transfer<RecordType extends TransferItem = TransferItem> extends React.Com
footer={footer}
onScroll={this.handleLeftScroll}
disabled={disabled}
direction="left"
direction={direction === 'rtl' ? 'right' : 'left'}
showSelectAll={showSelectAll}
selectAllLabel={selectAllLabels[0]}
pagination={mergedPagination}
@ -437,7 +437,7 @@ class Transfer<RecordType extends TransferItem = TransferItem> extends React.Com
footer={footer}
onScroll={this.handleRightScroll}
disabled={disabled}
direction="right"
direction={direction === 'rtl' ? 'left' : 'right'}
showSelectAll={showSelectAll}
selectAllLabel={selectAllLabels[1]}
showRemove={oneWay}