update site
parent
782eebccee
commit
d41c7dbbcd
|
@ -10,7 +10,7 @@ import sortBy from 'lodash/sortBy';
|
|||
import { isZhCN } from '../util';
|
||||
import { Provider, create } from '../../components/_util/store';
|
||||
import NProgress from 'nprogress';
|
||||
import MobileMenu from '../../components/vc-drawer/src';
|
||||
import MobileMenu from '../../components/vc-drawer/src';
|
||||
|
||||
const docsList = [
|
||||
{ key: 'introduce', enTitle: 'Ant Design of Vue', title: 'Ant Design of Vue' },
|
||||
|
@ -155,6 +155,15 @@ export default {
|
|||
mountedCallback () {
|
||||
NProgress.done();
|
||||
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]];
|
||||
this.resetDocumentTitle(config, reName, isCN);
|
||||
const { showSideBars, isMobile } = this;
|
||||
const { isMobile } = this;
|
||||
return (
|
||||
<div class='page-wrapper'>
|
||||
<Header searchData={searchData} name={name}/>
|
||||
|
|
|
@ -16,6 +16,43 @@
|
|||
display: none;
|
||||
}
|
||||
</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>
|
||||
var _hmt = _hmt || [];
|
||||
var isGithub = location.host.indexOf('github') !== -1;
|
||||
|
@ -27,12 +64,16 @@
|
|||
s.parentNode.insertBefore(hm, s);
|
||||
})()
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<router-view></router-view>
|
||||
</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>
|
||||
// var SeedAndDewConfig = {};
|
||||
// (function() {
|
||||
|
@ -52,4 +93,4 @@
|
|||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -171,3 +171,13 @@
|
|||
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