mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[Improvement] follow eslint-plugin-vue strongly-recommended code style (#482)
This commit is contained in:
@@ -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>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<router-view></router-view>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<style lang="postcss">
|
||||
|
@@ -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">
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user