mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
23 lines
501 B
TypeScript
23 lines
501 B
TypeScript
|
import React from 'react';
|
||
|
import { Button, Popover } from 'antd';
|
||
|
|
||
|
const content = (
|
||
|
<>
|
||
|
<p>Content</p>
|
||
|
<p>Content</p>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<Popover placement="topLeft" title="Title" content={content}>
|
||
|
<Button>Align edge / 边缘对齐</Button>
|
||
|
</Popover>
|
||
|
<Popover placement="topLeft" title="Title" content={content} arrowPointAtCenter>
|
||
|
<Button>Arrow points to center / 箭头指向中心</Button>
|
||
|
</Popover>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|