You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
584 B
18 lines
584 B
<wxs src="../wxs/utils.wxs" module="utils" /> |
|
|
|
<view |
|
class="{{ utils.bem('sidebar-item', { selected, disabled }) }} {{ selected ? 'active-class' : '' }} {{ disabled ? 'disabled-class' : '' }} custom-class" |
|
hover-class="van-sidebar-item--hover" |
|
hover-stay-time="70" |
|
bind:tap="onClick" |
|
> |
|
<view class="van-sidebar-item__text"> |
|
<van-info |
|
wx:if="{{ badge != null || info !== null || dot }}" |
|
dot="{{ dot }}" |
|
info="{{ badge != null ? badge : info }}" |
|
/> |
|
<view wx:if="{{ title }}">{{ title }}</view> |
|
<slot wx:else name="title" /> |
|
</view> |
|
</view>
|
|
|