mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
ef22e5db62
* feat(components): [tooltip] adjust controlled mode
17 lines
337 B
Vue
17 lines
337 B
Vue
<template>
|
|
<el-tooltip :visible="visible">
|
|
<template #content>
|
|
<span>Content</span>
|
|
</template>
|
|
<el-button @mouseenter="visible = true" @mouseleave="visible = false">
|
|
Hover me
|
|
</el-button>
|
|
</el-tooltip>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
|
|
const visible = ref(false)
|
|
</script>
|