File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div class =" message-box d-flex flex-clo" >
3- <v-alert v-for =" (opts, index) in alertPool" dense border =" left" :type =" opts.type" :key =" index"
4- transition =" scale-transition" >
5- <span >{{opts.msg}}</span >
6- </v-alert >
3+ <transition-group name =" list-complete" >
4+ <v-alert v-for =" opts in alertPool" dense border =" left" :type =" opts.type" :key =" opts.id"
5+ class =" list-complete-item" >
6+ <span >{{opts.msg}}</span >
7+ </v-alert >
8+ </transition-group >
79 </div >
810</template >
911
@@ -27,4 +29,16 @@ export default {
2729 max-width : 460px ;
2830 transform : translateX (-50% );
2931}
32+ .list-complete-item {
33+ width : 100% ;
34+ transition : all 0.3s ;
35+ }
36+ .list-complete-enter ,
37+ .list-complete-leave-to {
38+ opacity : 0 ;
39+ transform : translateY (30px );
40+ }
41+ .list-complete-leave-active {
42+ position : absolute ;
43+ }
3044 </style >
You can’t perform that action at this time.
0 commit comments