mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
f4858ff581
* chore: align motion follow popup point * test: update snapshot
30 lines
722 B
TypeScript
30 lines
722 B
TypeScript
import { Button, Tooltip } from 'antd';
|
|
import React from 'react';
|
|
|
|
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',
|
|
}}
|
|
>
|
|
<Tooltip title="Thanks for using antd. Have a nice day!" trigger="click" defaultOpen>
|
|
<Button>Scroll The Window</Button>
|
|
</Tooltip>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default App;
|