mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
19 lines
349 B
Vue
19 lines
349 B
Vue
|
<template>
|
||
|
<el-tooltip v-model="visible">
|
||
|
<template #content>
|
||
|
<span>
|
||
|
<p>Content</p>
|
||
|
</span>
|
||
|
</template>
|
||
|
<span @mouseenter="visible = true" @mouseleave="visible = false"
|
||
|
>Hover me</span
|
||
|
>
|
||
|
</el-tooltip>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
import { ref } from 'vue'
|
||
|
|
||
|
const visible = ref(false)
|
||
|
</script>
|