chore: fix listStyle type, #31322

This commit is contained in:
afc163 2021-07-09 11:14:07 +08:00
parent 7b16310699
commit 10a8490b1f

View File

@ -301,7 +301,7 @@ class Transfer<RecordType extends TransferItem = TransferItem> extends React.Com
}
handleListStyle = (
listStyle: ((style: ListStyle) => React.CSSProperties) | React.CSSProperties,
listStyle: TransferProps<RecordType>['listStyle'],
direction: TransferDirection,
) => {
if (typeof listStyle === 'function') {