mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* 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
28 lines
463 B
Vue
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>
|