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

@@ -1,5 +1,5 @@
<template>
<input class="van-doc-search" :placeholder="placeholder">
<input class="van-doc-search" :placeholder="placeholder" />
</template>
<script>
@@ -8,13 +8,13 @@ export default {
props: {
lang: String,
searchConfig: Object
searchConfig: Object,
},
computed: {
placeholder() {
return this.searchConfig.placeholder || 'Search...';
}
},
},
watch: {
@@ -22,7 +22,7 @@ export default {
if (this.docsearchInstance) {
this.docsearchInstance.algoliaOptions.facetFilters = [`lang:${lang}`];
}
}
},
},
mounted() {
@@ -31,11 +31,11 @@ export default {
...this.searchConfig,
inputSelector: '.van-doc-search',
algoliaOptions: {
facetFilters: [`lang:${this.lang}`]
}
facetFilters: [`lang:${this.lang}`],
},
});
}
}
},
};
</script>