docs: [tooltip] improve document content and examples (#19204)

docs: [Tooltip] Improve document content and examples
This commit is contained in:
Jeff
2024-12-10 21:38:35 +08:00
committed by GitHub
parent ae22c959ac
commit d9da5341d2
3 changed files with 23 additions and 16 deletions

View File

@ -1,7 +1,22 @@
<template>
<el-tooltip content="I am an el-tooltip">
<el-tooltip content="I am an el-tooltip" transition="slide-fade">
<el-button>trigger me</el-button>
</el-tooltip>
</template>
<script lang="ts" setup></script>
<style>
.slide-fade-enter-active {
transition: all 0.3s ease-out;
}
.slide-fade-leave-active {
transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-fade-enter-from,
.slide-fade-leave-to {
transform: translateX(120px);
opacity: 0;
}
</style>