mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-16 03:53:39 +08:00
docs: [tooltip] improve document content and examples (#19204)
docs: [Tooltip] Improve document content and examples
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user