forked from opentiny/tiny-vue
31 lines
576 B
Vue
31 lines
576 B
Vue
<template>
|
|
<tiny-popover
|
|
placement="top-start"
|
|
title="标题"
|
|
width="200"
|
|
trigger="hover"
|
|
:open-delay="delayTimes"
|
|
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 {
|
|
delayTimes: 2000
|
|
}
|
|
}
|
|
}
|
|
</script>
|