mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Cell: title slot width (#642)
This commit is contained in:
parent
6c175652bf
commit
6ead035fe8
@ -11,14 +11,15 @@
|
||||
<slot wx:else name="icon" />
|
||||
|
||||
<view
|
||||
wx:if="{{ title }}"
|
||||
style="{{ titleStyle }}"
|
||||
class="van-cell__title title-class"
|
||||
>
|
||||
<block wx:if="{{ title }}">
|
||||
{{ title }}
|
||||
<view wx:if="{{ label }}" class="van-cell__label label-class">{{ label }}</view>
|
||||
</block>
|
||||
<slot wx:else name="title" />
|
||||
</view>
|
||||
<slot name="title" />
|
||||
|
||||
<view class="van-cell__value value-class">
|
||||
<view wx:if="{{ value }}">{{ value }}</view>
|
||||
|
Loading…
x
Reference in New Issue
Block a user