import { Button, Tooltip } from 'antd'; import React from 'react'; const wrapStyles: React.CSSProperties = { overflow: 'auto', position: 'relative', padding: '24px', border: '1px solid #e9e9e9', }; const App: React.FC = () => { const containerRef = React.useRef(null); React.useEffect(() => { containerRef.current!.scrollLeft = containerRef.current!.clientWidth * 0.5; }, []); return (
trigger.parentElement!} > trigger.parentElement!} autoAdjustOverflow={false} >
); }; export default App;