2023-02-15 10:21:28 +08:00
|
|
|
import React from 'react';
|
2023-07-28 16:17:43 +08:00
|
|
|
import { Button, Tooltip } from 'antd';
|
2023-02-15 10:21:28 +08:00
|
|
|
|
|
|
|
const App: React.FC = () => {
|
|
|
|
React.useEffect(() => {
|
|
|
|
document.documentElement.scrollTop = document.documentElement.clientHeight;
|
|
|
|
document.documentElement.scrollLeft = document.documentElement.clientWidth;
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
width: '300vw',
|
|
|
|
height: '300vh',
|
|
|
|
display: 'flex',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
}}
|
|
|
|
>
|
2024-04-25 17:31:07 +08:00
|
|
|
<Tooltip title="Thanks for using antd. Have a nice day!" trigger="click" open>
|
2023-02-15 10:21:28 +08:00
|
|
|
<Button>Scroll The Window</Button>
|
|
|
|
</Tooltip>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default App;
|