mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[improvement] update eslint rules (#2089)
This commit is contained in:
@@ -3,20 +3,33 @@
|
||||
<demo-section>
|
||||
<van-notice-bar>{{ $t('tips') }}</van-notice-bar>
|
||||
<demo-block :title="$t('basicUsage')">
|
||||
<van-swipe-cell :right-width="65" :left-width="65">
|
||||
<van-swipe-cell
|
||||
:right-width="65"
|
||||
:left-width="65"
|
||||
>
|
||||
<span slot="left">{{ $t('button1') }}</span>
|
||||
<van-cell-group>
|
||||
<van-cell :title="$t('title')" :value="$t('content')" />
|
||||
<van-cell
|
||||
:title="$t('title')"
|
||||
:value="$t('content')"
|
||||
/>
|
||||
</van-cell-group>
|
||||
<span slot="right">{{ $t('button2') }}</span>
|
||||
</van-swipe-cell>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('title2')">
|
||||
<van-swipe-cell :right-width="65" :left-width="65" :on-close="onClose">
|
||||
<van-swipe-cell
|
||||
:right-width="65"
|
||||
:left-width="65"
|
||||
:on-close="onClose"
|
||||
>
|
||||
<span slot="left">{{ $t('button1') }}</span>
|
||||
<van-cell-group>
|
||||
<van-cell :title="$t('title')" :value="$t('content')" />
|
||||
<van-cell
|
||||
:title="$t('title')"
|
||||
:value="$t('content')"
|
||||
/>
|
||||
</van-cell-group>
|
||||
<span slot="right">{{ $t('button2') }}</span>
|
||||
</van-swipe-cell>
|
||||
|
@@ -13,11 +13,19 @@
|
||||
:style="wrapperStyle"
|
||||
@transitionend="swipe = false"
|
||||
>
|
||||
<div v-if="leftWidth" :class="b('left')" @click.stop="onClick('left')">
|
||||
<div
|
||||
v-if="leftWidth"
|
||||
:class="b('left')"
|
||||
@click.stop="onClick('left')"
|
||||
>
|
||||
<slot name="left" />
|
||||
</div>
|
||||
<slot />
|
||||
<div v-if="rightWidth" :class="b('right')" @click.stop="onClick('right')">
|
||||
<div
|
||||
v-if="rightWidth"
|
||||
:class="b('right')"
|
||||
@click.stop="onClick('right')"
|
||||
>
|
||||
<slot name="right" />
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user