2018-01-12 08:10:41 +00:00
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<md>
|
|
|
|
|
## 基本
|
|
|
|
|
最简单的用法,浮层的大小由内容区域决定。
|
|
|
|
|
</md>
|
|
|
|
|
<Popover title="Title">
|
|
|
|
|
<template slot="content">
|
2018-01-19 10:01:43 +00:00
|
|
|
|
<p>Content</p>
|
|
|
|
|
<p>Content</p>
|
2018-01-12 08:10:41 +00:00
|
|
|
|
</template>
|
2018-01-23 10:55:39 +00:00
|
|
|
|
<a-button type="primary">Hover me</a-button>
|
2018-01-12 08:10:41 +00:00
|
|
|
|
</Popover>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { Popover, Button } from 'antd'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
Popover,
|
2018-01-23 10:55:39 +00:00
|
|
|
|
|
2018-01-12 08:10:41 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|