|
@@ -5,13 +5,14 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="md-swaper" @click="clearSearch" v-else>
|
|
<div class="md-swaper" @click="clearSearch" v-else>
|
|
|
<div class="hder">
|
|
<div class="hder">
|
|
|
- <div class="logo">
|
|
|
|
|
|
|
+ <div class="logo">
|
|
|
<a href="#/index" class="logo-link">
|
|
<a href="#/index" class="logo-link">
|
|
|
<img src="./asset/css/i/nut.png" alt>
|
|
<img src="./asset/css/i/nut.png" alt>
|
|
|
</a>
|
|
</a>
|
|
|
<span class="version">v{{version}}</span>
|
|
<span class="version">v{{version}}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="h-nav">
|
|
<div class="h-nav">
|
|
|
|
|
+
|
|
|
<search/>
|
|
<search/>
|
|
|
<ul class="list">
|
|
<ul class="list">
|
|
|
<li class="cur">
|
|
<li class="cur">
|
|
@@ -42,10 +43,10 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="demo-wrapper">
|
|
<div class="demo-wrapper">
|
|
|
- <router-view class="demo-nav"></router-view>
|
|
|
|
|
|
|
+ <router-view class="demo-nav fixed-box"></router-view>
|
|
|
|
|
|
|
|
<keep-alive include="index">
|
|
<keep-alive include="index">
|
|
|
- <router-view class="doc-cont" :class="showPhone?'':'docpad'" name="main"></router-view>
|
|
|
|
|
|
|
+ <router-view class="doc-cont fl-right" :class="showPhone?'':'docpad'" name="main"></router-view>
|
|
|
</keep-alive>
|
|
</keep-alive>
|
|
|
<div v-if="showPhone" class="showPhone">
|
|
<div v-if="showPhone" class="showPhone">
|
|
|
<div class="ph">
|
|
<div class="ph">
|
|
@@ -81,22 +82,22 @@
|
|
|
import "./asset/css/common.scss";
|
|
import "./asset/css/common.scss";
|
|
|
import "./asset/css/style-blue.scss";
|
|
import "./asset/css/style-blue.scss";
|
|
|
import { packages } from "../../src/config.json";
|
|
import { packages } from "../../src/config.json";
|
|
|
-import { version } from "../../package.json";
|
|
|
|
|
import search from "./search.vue";
|
|
import search from "./search.vue";
|
|
|
-import leftNav from './info.vue'
|
|
|
|
|
|
|
+import leftNav from './info.vue';
|
|
|
|
|
+import { version } from "../../package.json";
|
|
|
export default {
|
|
export default {
|
|
|
name: "App",
|
|
name: "App",
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
packages,
|
|
packages,
|
|
|
|
|
+ version,
|
|
|
searchList: [],
|
|
searchList: [],
|
|
|
searchVal: "",
|
|
searchVal: "",
|
|
|
routerName: "",
|
|
routerName: "",
|
|
|
showPhone: false,
|
|
showPhone: false,
|
|
|
searchCurName: "",
|
|
searchCurName: "",
|
|
|
searchIndex: 0,
|
|
searchIndex: 0,
|
|
|
- codeurl: "",
|
|
|
|
|
- version
|
|
|
|
|
|
|
+ codeurl: ""
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -203,6 +204,16 @@ export default {
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
|
|
+.fixed-box{
|
|
|
|
|
+ position: fixed;
|
|
|
|
|
+ z-index: 9;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ overflow:hidden;
|
|
|
|
|
+ overflow-y: auto;
|
|
|
|
|
+ top:0;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+}
|
|
|
.fade-enter-active,
|
|
.fade-enter-active,
|
|
|
.fade-leave-active {
|
|
.fade-leave-active {
|
|
|
transition: opacity 0.5s;
|
|
transition: opacity 0.5s;
|
|
@@ -223,7 +234,7 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
}
|
|
}
|
|
|
.hder {
|
|
.hder {
|
|
|
- position: absolute;
|
|
|
|
|
|
|
+ position: fixed;
|
|
|
top: 0;
|
|
top: 0;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
@@ -233,13 +244,13 @@ export default {
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
margin-bottom: 50px;
|
|
margin-bottom: 50px;
|
|
|
z-index: 42;
|
|
z-index: 42;
|
|
|
- .logo {
|
|
|
|
|
- width: 295px;
|
|
|
|
|
- height: 65px;
|
|
|
|
|
- border-right: 1px solid #d8d8d8;
|
|
|
|
|
|
|
+ .logo {
|
|
|
|
|
+ width: 293px;
|
|
|
|
|
+ height: 65px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
|
|
+ border-right: 1px solid #d8d8d8;
|
|
|
.logo-link {
|
|
.logo-link {
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
}
|
|
}
|
|
@@ -264,7 +275,7 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
padding-left: 42px;
|
|
padding-left: 42px;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- width: 100%;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
select {
|
|
select {
|
|
|
width: 74px;
|
|
width: 74px;
|
|
|
height: 28px;
|
|
height: 28px;
|
|
@@ -432,6 +443,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .fl-right{
|
|
|
|
|
+ margin-left: 310px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.foot {
|
|
.foot {
|
|
|
height: 120px;
|
|
height: 120px;
|
|
@@ -444,6 +458,8 @@ export default {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
bottom: 0;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
+ padding-left: 300px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
a {
|
|
a {
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
text-decoration: none;
|
|
text-decoration: none;
|