mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
19 lines
357 B
Vue
19 lines
357 B
Vue
<template>
|
|
<el-tooltip v-model:visible="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>
|