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

@@ -4,16 +4,14 @@
class="demo-home__title"
:class="{ 'demo-home__title--small': smallTitle }"
>
<img :src="config.logo">
<img :src="config.logo" />
<span>{{ config.title }}</span>
</h1>
<h2 v-if="config.description" class="demo-home__desc">{{ config.description }}</h2>
<h2 v-if="config.description" class="demo-home__desc">
{{ config.description }}
</h2>
<template v-for="(group, index) in config.nav">
<demo-home-nav
:group="group"
:lang="lang"
:key="index"
/>
<demo-home-nav :group="group" :lang="lang" :key="index" />
</template>
</div>
</template>
@@ -24,7 +22,7 @@ import DemoHomeNav from './DemoHomeNav';
export default {
components: {
DemoHomeNav
DemoHomeNav,
},
computed: {
@@ -45,8 +43,8 @@ export default {
smallTitle() {
return this.config.title.length >= 8;
}
}
},
},
};
</script>