[improvement] update eslint rules (#2089)

This commit is contained in:
neverland
2018-11-15 15:30:17 +08:00
committed by GitHub
parent 0860901ec1
commit e14b43e66a
129 changed files with 1874 additions and 456 deletions

View File

@@ -2,13 +2,20 @@
<demo-section>
<demo-block :title="$t('basicUsage')">
<p class="page-desc">{{ $t('text') }}</p>
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-pull-refresh
v-model="refreshing"
@refresh="onRefresh"
>
<van-list
v-model="loading"
:finished="finished"
@load="onLoad"
>
<van-cell v-for="item in list" :key="item" :title="item + ''" />
<van-cell
v-for="item in list"
:key="item"
:title="item + ''"
/>
</van-list>
</van-pull-refresh>
</demo-block>

View File

@@ -1,7 +1,10 @@
<template>
<div :class="b()">
<slot />
<div v-show="loading" :class="b('loading')">
<div
v-show="loading"
:class="b('loading')"
>
<slot name="loading">
<loading />
<span :class="b('loading-text')">{{ loadingText || $t('loadingTip') }}</span>