chore(cli): update eslint config and prettier codes

This commit is contained in:
陈嘉涵
2020-01-19 11:42:22 +08:00
parent 633e9cf59d
commit 1691451813
52 changed files with 383 additions and 363 deletions
@@ -28,18 +28,18 @@ export default {
name: 'van-doc-nav',
components: {
[NavLink.name]: NavLink
[NavLink.name]: NavLink,
},
props: {
lang: String,
navConfig: Array
navConfig: Array,
},
data() {
return {
top: 60,
bottom: 0
bottom: 0,
};
},
@@ -47,13 +47,13 @@ export default {
style() {
return {
top: this.top + 'px',
bottom: this.bottom + 'px'
bottom: this.bottom + 'px',
};
},
base() {
return this.lang ? `/${this.lang}/` : '/';
}
},
},
created() {
@@ -65,8 +65,8 @@ export default {
onScroll() {
const { pageYOffset: offset } = window;
this.top = Math.max(0, 60 - offset);
}
}
},
},
};
</script>