update site
parent
782eebccee
commit
d41c7dbbcd
|
@ -155,6 +155,15 @@ export default {
|
||||||
mountedCallback () {
|
mountedCallback () {
|
||||||
NProgress.done();
|
NProgress.done();
|
||||||
document.documentElement.scrollTop = 0;
|
document.documentElement.scrollTop = 0;
|
||||||
|
try {
|
||||||
|
document.getElementById('ad').innerHTML = '';
|
||||||
|
const src = '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio';
|
||||||
|
const hm = document.createElement('script');
|
||||||
|
hm.src = src;
|
||||||
|
hm.id = '_carbonads_js';
|
||||||
|
const s = document.getElementById('ad');
|
||||||
|
s.append(hm);
|
||||||
|
} catch (error) {}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -224,7 +233,7 @@ export default {
|
||||||
}
|
}
|
||||||
const config = AllDemo[titleMap[reName]];
|
const config = AllDemo[titleMap[reName]];
|
||||||
this.resetDocumentTitle(config, reName, isCN);
|
this.resetDocumentTitle(config, reName, isCN);
|
||||||
const { showSideBars, isMobile } = this;
|
const { isMobile } = this;
|
||||||
return (
|
return (
|
||||||
<div class='page-wrapper'>
|
<div class='page-wrapper'>
|
||||||
<Header searchData={searchData} name={name}/>
|
<Header searchData={searchData} name={name}/>
|
||||||
|
|
|
@ -16,6 +16,43 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style>
|
||||||
|
#ad {
|
||||||
|
width: 145px;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
|
||||||
|
}
|
||||||
|
#ad a {
|
||||||
|
display: inline-block;
|
||||||
|
color: #7f8c8d;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
#ad span {
|
||||||
|
color: #7f8c8d;
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
#ad img {
|
||||||
|
width: 125px;
|
||||||
|
}
|
||||||
|
#ad .carbon-img,
|
||||||
|
#ad .carbon-text {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #34495e;
|
||||||
|
}
|
||||||
|
#ad .carbon-poweredby {
|
||||||
|
color: #aaa;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<script>
|
<script>
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
var isGithub = location.host.indexOf('github') !== -1;
|
var isGithub = location.host.indexOf('github') !== -1;
|
||||||
|
@ -27,12 +64,16 @@
|
||||||
s.parentNode.insertBefore(hm, s);
|
s.parentNode.insertBefore(hm, s);
|
||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="ad">
|
||||||
|
<!-- <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio" id="_carbonads_js"></script> -->
|
||||||
|
</div>
|
||||||
<script>
|
<script>
|
||||||
// var SeedAndDewConfig = {};
|
// var SeedAndDewConfig = {};
|
||||||
// (function() {
|
// (function() {
|
||||||
|
|
|
@ -171,3 +171,13 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.toc-affix {
|
||||||
|
width: 120px;
|
||||||
|
position: fixed;
|
||||||
|
top: 100px;
|
||||||
|
right: 10px;
|
||||||
|
bottom: 250px;
|
||||||
|
}
|
||||||
|
.toc-affix .ant-anchor-wrapper {
|
||||||
|
max-height: calc(~'100vh - 350px') !important;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue