mirror of
https://github.com/youzan/vant.git
synced 2026-04-21 01:02:04 +08:00
feat: add transition animation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user