mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 04:08:34 +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>
|