2015-06-17 16:58:13 +08:00
|
|
|
# 基本
|
|
|
|
|
|
|
|
- order: 0
|
|
|
|
|
2016-03-24 11:25:23 +08:00
|
|
|
最简单的用法,浮层的大小由内容区域决定。
|
2015-06-17 16:58:13 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Popover, Button } from 'antd';
|
2015-10-08 15:13:04 +08:00
|
|
|
|
2016-01-07 16:29:12 +08:00
|
|
|
const content = (
|
|
|
|
<div>
|
|
|
|
<p>内容</p>
|
|
|
|
<p>内容</p>
|
|
|
|
</div>
|
|
|
|
);
|
2015-06-17 16:58:13 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(
|
2015-06-17 16:58:13 +08:00
|
|
|
<Popover overlay={content} title="标题">
|
2015-10-08 15:13:04 +08:00
|
|
|
<Button type="primary">弹出卡片</Button>
|
2015-06-17 16:58:13 +08:00
|
|
|
</Popover>
|
2015-12-29 12:08:58 +08:00
|
|
|
, mountNode);
|
2015-06-17 16:58:13 +08:00
|
|
|
````
|