forked from nsjcy/frontEnd/nsjcy

liuwh
2020-02-24 2bcd556961208b80af1cb157633c594faab1eca2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<view class="wux-class {{ classes.wrap }}" style="width: {{ width }}" bindtap="onTap">
    <view class="{{ classes.icon }}">
        <block wx:if="{{ current }}">
            <slot name="icon-off"></slot>
        </block>
        <block wx:else>
            <slot name="icon-on"></slot>
        </block>
    </view>
    <view class="{{ classes.title }}">
        <text wx:if="{{ title }}">{{ title }}</text>
        <block wx:else>
            <slot></slot>
        </block>
    </view>
</view>