File tree Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 16
16
< div id ="main ">
17
17
< div class ="container-fluid machine-contents ">
18
18
< draggable :list ="jobs " :options ="{animation:150} " :no-transition-on-drag ="true " @start ="drag=true " @end ="drag=false ">
19
- < transition-group :name ="!drag? 'list-complete' : null " :class =" {'no' : drag} " : css ="true ">
20
- < div v-for ="(job, index) in jobs " :key ="job.jobNumber " : class ="drag? 'item' : ' list-complete-item' ">
19
+ < transition-group :name ="!drag? 'list-complete' : null " :css ="true ">
20
+ < div v-for ="(job, index) in jobs " :key ="job.jobNumber " class ="list-complete-item ">
21
21
< div >
22
22
{{ job.jobNumber }}
23
23
</ div >
Original file line number Diff line number Diff line change 18
18
< div id ="columns ">
19
19
< div class ="container-fluid machine-contents list ">
20
20
< draggable :list ="jobs " :options ="{group:'a', animation:150} " :no-transition-on-drag ="true " @start ="drag=true " @end ="drag=false ">
21
- < transition-group :name ="!drag? 'list-complete' : null " :class =" {'no' : drag} " : css ="true ">
22
- < div v-for ="(job, index) in jobs " :key ="job.jobNumber " : class ="drag? 'item' : ' list-complete-item' ">
21
+ < transition-group :name ="!drag? 'list-complete' : null " :css ="true ">
22
+ < div v-for ="(job, index) in jobs " :key ="job.jobNumber " class ="list-complete-item ">
23
23
< div >
24
24
{{ job.jobNumber }}
25
25
</ div >
34
34
35
35
< div class ="container-fluid machine-contents list ">
36
36
< draggable v-model ="jobs2 " :options ="{group:'a', animation:150} " :no-transition-on-drag ="true " @start ="drag=true " @end ="drag=false ">
37
- < transition-group :name ="!drag? 'list-complete' : null " :class =" {'no' : drag} " : css ="true ">
38
- < div v-for ="(job, index) in jobs2 " :key ="job.jobNumber " : class ="drag? 'item' : ' list-complete-item' ">
37
+ < transition-group :name ="!drag? 'list-complete' : null " :css ="true ">
38
+ < div v-for ="(job, index) in jobs2 " :key ="job.jobNumber " class ="list-complete-item ">
39
39
< div >
40
40
{{ job.jobNumber }}
41
41
</ div >
Original file line number Diff line number Diff line change 36
36
padding : 4px ;
37
37
margin-top : 4px ;
38
38
border : solid 1px ;
39
- transition : all 1s ;
40
39
height : 60px ;
40
+ }
41
+
42
+ .list-complete-enter-active {
41
43
overflow : hidden;
44
+ transition : all 1s ;
42
45
}
43
46
44
- .item {
45
- padding : 4px ;
46
- margin-top : 4px ;
47
- border : solid 1px ;
48
- height : 60px ;
47
+ .list-complete-leave-active {
48
+ margin-top : 0px ;
49
+ overflow : hidden;
50
+ transition : all 1s ;
49
51
}
50
52
51
- .list-complete-enter , .list-complete-leave-active {
52
- opacity : 0 ;
53
+ .list-complete-enter , .list-complete-leave-to {
53
54
height : 0px ;
54
- margin-top : 0 px ;
55
+ opacity : 0 ;
55
56
padding : 0px ;
56
- border : solid 0px ;
57
+ margin-top : 0px ;
58
+ overflow : hidden;
57
59
}
58
60
59
61
.machine-contents {
You can’t perform that action at this time.
0 commit comments