mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[improvement] update eslint rules (#2089)
This commit is contained in:
@@ -12,12 +12,23 @@
|
||||
@click="onClick"
|
||||
>
|
||||
<slot name="icon">
|
||||
<icon v-if="icon" :class="b('left-icon')" :name="icon" />
|
||||
<icon
|
||||
v-if="icon"
|
||||
:class="b('left-icon')"
|
||||
:name="icon"
|
||||
/>
|
||||
</slot>
|
||||
<div v-if="isDef(title) || $slots.title" :class="b('title')">
|
||||
<div
|
||||
v-if="isDef(title) || $slots.title"
|
||||
:class="b('title')"
|
||||
>
|
||||
<slot name="title">
|
||||
<span v-text="title" />
|
||||
<div v-if="label" v-text="label" :class="b('label')" />
|
||||
<div
|
||||
v-if="label"
|
||||
v-text="label"
|
||||
:class="b('label')"
|
||||
/>
|
||||
</slot>
|
||||
</div>
|
||||
<div
|
||||
@@ -29,7 +40,11 @@
|
||||
</slot>
|
||||
</div>
|
||||
<slot name="right-icon">
|
||||
<icon v-if="isLink" :class="b('right-icon', arrowDirection)" name="arrow" />
|
||||
<icon
|
||||
v-if="isLink"
|
||||
:class="b('right-icon', arrowDirection)"
|
||||
name="arrow"
|
||||
/>
|
||||
</slot>
|
||||
<slot name="extra" />
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user