<wxs module="utils" src="../wxs/utils.wxs"/>

<view
        bind:tap="onClick"
        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"
>
    <view class="van-sidebar-item__text">
        <van-info
                dot="{{ dot }}"
                info="{{ badge != null ? badge : info }}"
                wx:if="{{ badge != null || info !== null || dot }}"
        />
        <view wx:if="{{ title }}">{{ title }}</view>
        <slot name="title" wx:else/>
    </view>
</view>
