[improvement] update eslint rules (#2089)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 }]"
|
||||
|
||||
Reference in New Issue
Block a user