mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat: add transition animation
This commit is contained in:
parent
b2886f8856
commit
abbb41083e
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<transition name="zan-toast">
|
||||
<transition name="zan-toast-fade">
|
||||
<div class="zan-toast-wrapper" v-show="visible">
|
||||
<div class="zan-toast" :class="['zan-toast--' + displayStyle]">
|
||||
<!-- 只显示文字 -->
|
||||
|
@ -50,3 +50,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.zan-toast-fade-enter, .zan-toast-fade-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user