tiny-vue/examples/docs/resources/pc/demo/tooltip/popper-class.vue

27 lines
506 B
Vue

<template>
<tiny-tooltip
v-model="showTooltip"
popper-class="tippoper"
:append-to-body="false"
content="为 Tooltip 的 popper 添加类名"
:manual="false"
>
<button class="tiny-button tiny-button--primary">为 Tooltip 的 popper 添加类名</button>
</tiny-tooltip>
</template>
<script lang="jsx">
import { Tooltip } from '@opentiny/vue'
export default {
components: {
TinyTooltip: Tooltip
},
data() {
return {
showTooltip: true
}
}
}
</script>