mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-12 12:25:22 +08:00
ade87f6729
* docs: standardize unified example code format and fix some example type * docs: update some example type * Update docs/examples/descriptions/sizes.vue Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com> * docs: update example-page-header * docs: update example-page-header --------- Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
33 lines
634 B
Vue
33 lines
634 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>
|
|
|
|
<style>
|
|
.slide-fade-enter-active {
|
|
transition: all 0.3s ease;
|
|
}
|
|
.slide-fade-leave-active {
|
|
transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
|
|
}
|
|
.slide-fade-enter,
|
|
.expand-fade-leave-active {
|
|
margin-left: 20px;
|
|
opacity: 0;
|
|
}
|
|
</style>
|