Skip to content

Commit d232bf6

Browse files
committed
doc: update doc
1 parent ad81186 commit d232bf6

File tree

6 files changed

+176
-145
lines changed

6 files changed

+176
-145
lines changed

antd-tools/gulpfile.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,10 @@ function tag() {
145145
execSync(`git config --global user.name ${process.env.GITHUB_USER_NAME}`);
146146
execSync(`git tag ${version}`);
147147
execSync(
148-
`git push https://${
149-
process.env.GITHUB_TOKEN
150-
}@github.com/vueComponent/ant-design-vue.git ${version}:${version}`,
148+
`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design-vue.git ${version}:${version}`,
151149
);
152150
execSync(
153-
`git push https://${
154-
process.env.GITHUB_TOKEN
155-
}@github.com/vueComponent/ant-design-vue.git master:master`,
151+
`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design-vue.git master:master`,
156152
);
157153
console.log('tagged');
158154
}

components/vc-slick/src/slider.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ export default {
110110
if (settings.centerMode) {
111111
if (settings.slidesToScroll > 1 && process.env.NODE_ENV !== 'production') {
112112
console.warn(
113-
`slidesToScroll should be equal to 1 in centerMode, you are using ${
114-
settings.slidesToScroll
115-
}`,
113+
`slidesToScroll should be equal to 1 in centerMode, you are using ${settings.slidesToScroll}`,
116114
);
117115
}
118116
settings.slidesToScroll = 1;
@@ -121,16 +119,12 @@ export default {
121119
if (settings.fade) {
122120
if (settings.slidesToShow > 1 && process.env.NODE_ENV !== 'production') {
123121
console.warn(
124-
`slidesToShow should be equal to 1 when fade is true, you're using ${
125-
settings.slidesToShow
126-
}`,
122+
`slidesToShow should be equal to 1 when fade is true, you're using ${settings.slidesToShow}`,
127123
);
128124
}
129125
if (settings.slidesToScroll > 1 && process.env.NODE_ENV !== 'production') {
130126
console.warn(
131-
`slidesToScroll should be equal to 1 when fade is true, you're using ${
132-
settings.slidesToScroll
133-
}`,
127+
`slidesToScroll should be equal to 1 when fade is true, you're using ${settings.slidesToScroll}`,
134128
);
135129
}
136130
settings.slidesToShow = 1;

components/vc-tree-select/src/util.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,7 @@ function processEntity(entity, wrapper) {
376376
if (currentEntity) {
377377
warning(
378378
false,
379-
`Conflict! value of node '${entity.key}' (${value}) has already used by node '${
380-
currentEntity.key
381-
}'.`,
379+
`Conflict! value of node '${entity.key}' (${value}) has already used by node '${currentEntity.key}'.`,
382380
);
383381
}
384382
wrapper.valueEntities[value] = entity;

site/components/CarbonAds.vue

+31-27
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<script>
22
import axios from 'axios';
33
const carbonUrls = {
4-
'vuecomponent.github.io': '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio',
5-
'tangjinzhou.gitee.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=tangjinzhougiteeio',
6-
'ant-design-vue.gitee.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=antdesignvuegiteeio',
4+
'vuecomponent.github.io':
5+
'//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio',
6+
'tangjinzhou.gitee.io':
7+
'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=tangjinzhougiteeio',
8+
'ant-design-vue.gitee.io':
9+
'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=antdesignvuegiteeio',
710
'vue.ant.design': '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign',
811
};
9-
const carbonUrl = carbonUrls[location.host] || '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign';
12+
const carbonUrl =
13+
carbonUrls[location.host] ||
14+
'//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign';
1015
export default {
1116
props: {
1217
isMobile: Boolean,
@@ -17,18 +22,17 @@ export default {
1722
// if(isGitee) {
1823
// adId = '#cf';
1924
// }
20-
if(e.path !== t.path && this.$el.querySelector(adId)){
21-
this.$el.innerHTML = "";
25+
if (e.path !== t.path && this.$el.querySelector(adId)) {
26+
this.$el.innerHTML = '';
2227
this.load();
2328
}
2429
this.adInterval && clearInterval(this.adInterval);
25-
this.adInterval = setInterval(()=>{
26-
if(!this.$el.querySelector(adId)){
27-
this.$el.innerHTML = "";
30+
this.adInterval = setInterval(() => {
31+
if (!this.$el.querySelector(adId)) {
32+
this.$el.innerHTML = '';
2833
this.load();
2934
}
3035
}, 20000);
31-
3236
},
3337
},
3438
mounted() {
@@ -41,35 +45,35 @@ export default {
4145
// .then(function (response) {
4246
// document.getElementById("codefund-ads").innerHTML = response.data;
4347
// });
44-
// } else
45-
if(carbonUrl) {
46-
const e = document.createElement("script");
47-
e.id = "_carbonads_js";
48+
// } else
49+
if (carbonUrl) {
50+
const e = document.createElement('script');
51+
e.id = '_carbonads_js';
4852
e.src = carbonUrl;
4953
this.$el.appendChild(e);
5054
}
5155
},
5256
},
53-
render () {
54-
return (
55-
<div id="carbon-ads" class={this.isMobile ? 'carbon-mobile':''}/>
56-
);
57+
render() {
58+
return <div id="carbon-ads" class={this.isMobile ? 'carbon-mobile' : ''} />;
5759
},
5860
};
5961
</script>
6062
<style lang="less">
61-
#carbon-ads {
62-
width: 266px;
63-
position: fixed;
64-
left: 0;
65-
bottom: 0px;
63+
#carbon-ads {
64+
width: 280px;
65+
float: right;
66+
position: relative;
67+
right: 0;
68+
bottom: 0;
6669
padding: 0;
6770
overflow: hidden;
6871
z-index: 9;
6972
background-color: #fff;
73+
border-radius: 3px;
7074
font-size: 13px;
7175
background: #f5f5f5;
72-
font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
76+
font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
7377
}
7478
#carbonads {
7579
overflow: hidden;
@@ -100,9 +104,9 @@ export default {
100104
overflow: hidden;
101105
}
102106
#carbon-ads .carbon-poweredby {
103-
color: #aaa ;
104-
font-weight: normal ;
105-
line-height: 1.2 ;
107+
color: #aaa;
108+
font-weight: normal;
109+
line-height: 1.2;
106110
margin-top: 6px;
107111
}
108112
#carbon-ads.carbon-mobile {

site/components/geektime_ads.vue

+5-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
height="100"
1313
alt="浏览器工作原理与实践"
1414
src="http://pvrd7go2h.bkt.clouddn.com/geektime-browser.jpeg"
15-
>
15+
/>
1616
</a>
1717
</div>
1818
</template>
@@ -40,12 +40,10 @@ export default {
4040

4141
<style lang="less" scoped>
4242
#geektime-ads {
43-
max-width: 280px;
44-
height: 100px;
45-
float: right;
46-
position: relative;
47-
right: 0;
48-
bottom: 0;
43+
width: 266px;
44+
position: fixed;
45+
left: 0;
46+
bottom: 0px;
4947
padding: 0;
5048
overflow: hidden;
5149
z-index: 9;

0 commit comments

Comments
 (0)