Files
element-plus/docs/examples/tooltip/append-to.vue
知晓同丶 3b8a590baf docs: improve examples layout for narrow screens (#21489)
* docs: improve examples layout for narrow screens

* docs: style related

* style: [statistic] use utilities

* style: [input] remove deep

* style: [transitions] change style

* refactor: [date-picker-panel] narrow refactor
2025-08-21 10:22:05 +02:00

28 lines
463 B
Vue

<template>
<el-tooltip
:append-to="targetElement"
trigger="click"
content="Append to .target"
placement="top"
>
<el-button class="target">Click to open tooltip</el-button>
</el-tooltip>
</template>
<script lang="ts" setup>
import { onMounted, ref } from 'vue'
const targetElement = ref('')
onMounted(() => {
targetElement.value = '.target'
})
</script>
<style scoped>
.target {
position: relative;
margin-top: 20px;
}
</style>