[Improvement] follow eslint-plugin-vue strongly-recommended code style (#482)

This commit is contained in:
neverland
2017-12-26 10:34:38 +08:00
committed by GitHub
parent 6362f7b74b
commit 508cdfc0c9
105 changed files with 409 additions and 462 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="app">
<van-doc :simulators="simulators" :currentSimulator="currentSimulator" :config="config" :base="base">
<router-view @changeDemoURL="onChangeDemoURL"></router-view>
<van-doc :simulators="simulators" :current-simulator="currentSimulator" :config="config" :base="base">
<router-view @changeDemoURL="onChangeDemoURL" />
</van-doc>
</div>
</template>

View File

@@ -1,5 +1,5 @@
<template>
<router-view></router-view>
<router-view />
</template>
<style lang="postcss">

View File

@@ -1,7 +1,7 @@
<template>
<div class="side-nav">
<h1 class="zanui-title">
<img src="https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png" />
<img src="https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png" >
<span>Vant</span>
</h1>
<div class="mobile-switch-lang">

View File

@@ -9,7 +9,7 @@
>
<h4>{{ demo.title }}</h4>
<a :href="demo.source" target="_blank">{{ $t('source') }}</a>
<img :src="demo.preview" @click="onChangeDemo(demo, index)" />
<img :src="demo.preview" @click="onChangeDemo(demo, index)" >
</div>
</div>
</section>

View File

@@ -6,7 +6,7 @@
'mobile-nav-group__title--open': isOpen
}"
@click="handleNavTitleClick">
{{group.groupName}}
{{ group.groupName }}
</div>
<div class="mobile-nav-group__list-wrapper" :class="{ 'mobile-nav-group__list-wrapper--open': isOpen }">
<ul class="mobile-nav-group__list" :class="{ 'mobile-nav-group__list--open': isOpen }">
@@ -22,7 +22,7 @@
{{ navItem.title }}
</p>
</router-link>
<van-icon name="arrow"></van-icon>
<van-icon name="arrow" />
</li>
</template>
</ul>