mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[improvement] update eslint rules (#2089)
This commit is contained in:
@@ -13,8 +13,14 @@
|
||||
'min-height': type === 'textarea' && !autosize
|
||||
})"
|
||||
>
|
||||
<slot name="left-icon" slot="icon" />
|
||||
<slot name="label" slot="title" />
|
||||
<slot
|
||||
name="left-icon"
|
||||
slot="icon"
|
||||
/>
|
||||
<slot
|
||||
name="label"
|
||||
slot="title"
|
||||
/>
|
||||
<div :class="b('body')">
|
||||
<textarea
|
||||
v-if="type === 'textarea'"
|
||||
@@ -41,12 +47,19 @@
|
||||
:class="b('clear')"
|
||||
@touchstart.prevent="onClear"
|
||||
/>
|
||||
<div v-if="$slots.icon || icon" :class="b('icon')" @click="onClickIcon">
|
||||
<div
|
||||
v-if="$slots.icon || icon"
|
||||
:class="b('icon')"
|
||||
@click="onClickIcon"
|
||||
>
|
||||
<slot name="icon">
|
||||
<icon :name="icon" />
|
||||
</slot>
|
||||
</div>
|
||||
<div v-if="$slots.button" :class="b('button')">
|
||||
<div
|
||||
v-if="$slots.button"
|
||||
:class="b('button')"
|
||||
>
|
||||
<slot name="button" />
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user