forked from opentiny/tiny-vue
30 lines
543 B
Vue
30 lines
543 B
Vue
<template>
|
|
<tiny-popover
|
|
placement="top-start"
|
|
title="标题"
|
|
:width="width"
|
|
trigger="hover"
|
|
content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
|
|
>
|
|
<template #reference>
|
|
<tiny-button>悬浮我看效果</tiny-button>
|
|
</template>
|
|
</tiny-popover>
|
|
</template>
|
|
|
|
<script>
|
|
import { Popover, Button } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyPopover: Popover,
|
|
TinyButton: Button
|
|
},
|
|
data() {
|
|
return {
|
|
width: '200'
|
|
}
|
|
}
|
|
}
|
|
</script>
|