diff --git a/packages/react-transfer/src/index.tsx b/packages/react-transfer/src/index.tsx index 03e8d04438..06ea89b213 100644 --- a/packages/react-transfer/src/index.tsx +++ b/packages/react-transfer/src/index.tsx @@ -156,6 +156,15 @@ function Transfer(props: TransferProps) { props.onSearch?.('right', searchValue); }; + const Arrow = (props: { click: () => void; style: React.CSSProperties }) => ( + props.click()} + type="down-square-o" + className={`${prefixCls}-arrow`} + style={{ fontSize: 20, stroke: '#e9e9e9', fill: '#333', ...props.style }} + /> + ); + return (
- transferClick('left')} - type="down-square-o" - className={`${prefixCls}-arrow-left`} - style={{ transform: 'rotate(-90deg)', fontSize: 20 }} - /> - transferClick('right')} - type="down-square-o" - className={`${prefixCls}-arrow-right`} - style={{ transform: 'rotate(90deg)', fontSize: 20 }} - /> + transferClick('left')} style={{ transform: 'rotate(90deg)' }} /> + transferClick('right')} style={{ transform: 'rotate(-90deg)' }} />