1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<template>
<div id="app">
<transition name="fade">
<router-view class="child-view"/>
</transition>
</div>
</template>
<script>
export default {
name: 'App',
mounted(){
},
}
</script>
<style>
#app {
overflow: auto;
-webkit-overflow-scrolling:touch;
font-family: "Helvetica Neue",
Helvetica,
"PingFang SC",
"Hiragino Sans GB",
"Microsoft YaHei",
"微软雅黑",
Arial,
sans-serif;
}
html,body,#app{
width: 100%;
overflow: auto;
}
*{
margin: auto;
padding: auto;
}
.child-view {
position: relative;
width: 100%;
min-height: 100vh;
transition: all .5s;
}
.fade-enter-active, .fade-leave-active {
transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
}
</style>