[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
+12 -3
View File
@@ -8,12 +8,21 @@
</demo-block>
<demo-block :title="$t('title2')">
<van-notice-bar :scrollable="false" :text="$t('text')" />
<van-notice-bar
:scrollable="false"
:text="$t('text')"
/>
</demo-block>
<demo-block :title="$t('title3')">
<van-notice-bar mode="closeable" :text="$t('text')" />
<van-notice-bar mode="link" :text="$t('text')" />
<van-notice-bar
mode="closeable"
:text="$t('text')"
/>
<van-notice-bar
mode="link"
:text="$t('text')"
/>
</demo-block>
</demo-section>
</template>
+8 -2
View File
@@ -5,10 +5,16 @@
:style="barStyle"
@click="$emit('click')"
>
<div v-if="leftIcon" :class="b('left-icon')">
<div
v-if="leftIcon"
:class="b('left-icon')"
>
<img :src="leftIcon" >
</div>
<div :class="b('wrap')" ref="wrap">
<div
ref="wrap"
:class="b('wrap')"
>
<div
ref="content"
:class="[b('content'), animationClass, { 'van-ellipsis': !scrollable }]"