|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div :class="['demo-wrapper',{'in-iframe':inIframe}]">
|
|
<div :class="['demo-wrapper',{'in-iframe':inIframe}]">
|
|
|
- <router-view class="demo-nav" name="demonav" v-if="!inIframe"></router-view>
|
|
|
|
|
|
|
+ <router-view class="demo-nav" name="demonav" v-if="!inIframe" v-transition></router-view>
|
|
|
<keep-alive include="index">
|
|
<keep-alive include="index">
|
|
|
<router-view class="demo" name="main" v-transition></router-view>
|
|
<router-view class="demo" name="main" v-transition></router-view>
|
|
|
</keep-alive>
|
|
</keep-alive>
|
|
@@ -8,71 +8,50 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
export default {
|
|
export default {
|
|
|
- name: 'App',
|
|
|
|
|
- data(){
|
|
|
|
|
|
|
+ name: "App",
|
|
|
|
|
+ data() {
|
|
|
return {
|
|
return {
|
|
|
- inIframe:false
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ inIframe: false
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
- mounted(){
|
|
|
|
|
- if (window.self != window.top) {
|
|
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ if (window.self != window.top) {
|
|
|
this.inIframe = true;
|
|
this.inIframe = true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
-*{
|
|
|
|
|
|
|
+* {
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
}
|
|
|
[v-cloak] {
|
|
[v-cloak] {
|
|
|
display: none;
|
|
display: none;
|
|
|
}
|
|
}
|
|
|
-body{
|
|
|
|
|
- font-size:16px;
|
|
|
|
|
- margin: 0;
|
|
|
|
|
- color:#2e2d2d;
|
|
|
|
|
- font-family: PingHei,"Microsoft YaHei","Lucida Grande","Lucida Sans Unicode",STHeiti,Helvetica,Arial,Verdana,"sans-serif","PingHei-light",SimHei,"Droid Sans";
|
|
|
|
|
|
|
+body {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ color: #2e2d2d;
|
|
|
|
|
+ font-family: PingHei, "Microsoft YaHei", "Lucida Grande",
|
|
|
|
|
+ "Lucida Sans Unicode", STHeiti, Helvetica, Arial, Verdana, "sans-serif",
|
|
|
|
|
+ "PingHei-light", SimHei, "Droid Sans";
|
|
|
}
|
|
}
|
|
|
-.demo-wrapper{
|
|
|
|
|
- width:100%;
|
|
|
|
|
- min-height:100vh;
|
|
|
|
|
- padding-top:40px;
|
|
|
|
|
- box-sizing:border-box;
|
|
|
|
|
- background: #F6F6F6;
|
|
|
|
|
- &.in-iframe{
|
|
|
|
|
- padding-top:0;
|
|
|
|
|
|
|
+.demo-wrapper {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ min-height: 100vh;
|
|
|
|
|
+ padding-top: 40px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ background: #f6f6f6;
|
|
|
|
|
+ &.in-iframe {
|
|
|
|
|
+ padding-top: 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-h4{
|
|
|
|
|
- padding:0 8px;
|
|
|
|
|
|
|
+h4 {
|
|
|
|
|
+ padding: 0 8px;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
}
|
|
}
|
|
|
-.demo{
|
|
|
|
|
- padding-left:8px;
|
|
|
|
|
- padding-right:8px;
|
|
|
|
|
|
|
+.demo {
|
|
|
|
|
+ padding-left: 8px;
|
|
|
|
|
+ padding-right: 8px;
|
|
|
}
|
|
}
|
|
|
-// .button-primary {
|
|
|
|
|
-// display: block;
|
|
|
|
|
-// margin:.5rem 0;
|
|
|
|
|
-// height: 38px;
|
|
|
|
|
-// padding: 0 24px;
|
|
|
|
|
-// color: #555;
|
|
|
|
|
-// text-align: center;
|
|
|
|
|
-// font-size: 12px;
|
|
|
|
|
-// font-weight: 600;
|
|
|
|
|
-// line-height: 38px;
|
|
|
|
|
-// letter-spacing: .1rem;
|
|
|
|
|
-// text-transform: uppercase;
|
|
|
|
|
-// text-decoration: none;
|
|
|
|
|
-// white-space: nowrap;
|
|
|
|
|
-// background-color: transparent;
|
|
|
|
|
-// border-radius: 4px;
|
|
|
|
|
-// border: 1px solid #bbb;
|
|
|
|
|
-// cursor: pointer;
|
|
|
|
|
-// box-sizing: border-box;
|
|
|
|
|
-// color: #FFF;
|
|
|
|
|
-// background-color: #33C3F0;
|
|
|
|
|
-// border-color: #33C3F0;
|
|
|
|
|
-// }
|
|
|
|
|
</style>
|
|
</style>
|