mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 10:00:58 +08:00
19 lines
392 B
Vue
19 lines
392 B
Vue
<template>
|
|
<el-tooltip
|
|
:disabled="disabled"
|
|
content="click to close tooltip function"
|
|
placement="bottom"
|
|
effect="light"
|
|
>
|
|
<el-button @click="disabled = !disabled">
|
|
click to {{ disabled ? 'active' : 'close' }} tooltip function
|
|
</el-button>
|
|
</el-tooltip>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const disabled = ref(false)
|
|
</script>
|