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

View File

@@ -9,13 +9,13 @@ export default {
name: 'van-doc-simulator',
props: {
src: String
src: String,
},
data() {
return {
scrollTop: window.scrollY,
windowHeight: window.innerHeight
windowHeight: window.innerHeight,
};
},
@@ -27,9 +27,9 @@ export default {
simulatorStyle() {
const height = Math.min(640, this.windowHeight - 90);
return {
height: height + 'px'
height: height + 'px',
};
}
},
},
mounted() {
@@ -39,7 +39,7 @@ export default {
window.addEventListener('resize', () => {
this.windowHeight = window.innerHeight;
});
}
},
};
</script>