mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
ba31b465c8
commit
ae22e9e80b
@ -14,13 +14,14 @@
|
|||||||
custom-style="{{ customStyle }}"
|
custom-style="{{ customStyle }}"
|
||||||
arrow-direction="{{ arrowDirection }}"
|
arrow-direction="{{ arrowDirection }}"
|
||||||
custom-class="van-field"
|
custom-class="van-field"
|
||||||
title-class="label-class"
|
|
||||||
>
|
>
|
||||||
<slot name="left-icon" slot="icon" />
|
<slot name="left-icon" slot="icon" />
|
||||||
<view wx:if="{{ label }}" class="{{ utils.bem('field__label', { disabled }) }}" slot="title">
|
<view wx:if="{{ label }}" class="label-class {{ utils.bem('field__label', { disabled }) }}" slot="title">
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</view>
|
</view>
|
||||||
<slot wx:else name="label" slot="title" />
|
<view wx:else slot="title" class="label-class">
|
||||||
|
<slot name="label" />
|
||||||
|
</view>
|
||||||
<view class="{{ utils.bem('field__body', [type]) }}">
|
<view class="{{ utils.bem('field__body', [type]) }}">
|
||||||
<textarea
|
<textarea
|
||||||
wx:if="{{ type === 'textarea' }}"
|
wx:if="{{ type === 'textarea' }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user