WGShare.Client.Wx/pages/side-bar/custom/index.wxml

27 lines
933 B
Plaintext

<view class="side-bar-wrapper">
<t-side-bar value="{{sideBarIndex}}" bind:change="onSideBarChange">
<t-side-bar-item
wx:for="{{categories}}"
wx:key="index"
value="{{item.value || index}}"
label="{{item.label}}"
badge-props="{{item.badgeProps}}"
/>
</t-side-bar>
<scroll-view class="content" scroll-y scroll-with-animation scroll-top="{{scrollTop}}" bind:scroll="onScroll">
<view wx:for="{{categories}}" wx:key="index" class="section">
<view class="title">{{item.title || item.label}}</view>
<t-grid column="{{3}}" border="{{false}}">
<block wx:for="{{item.items}}" wx:key="index" wx:for-item="cargo">
<t-grid-item
text="{{cargo.label}}"
image="{{cargo.image}}"
image-props="{{ { shape: 'round', lazy: true } }}"
>
</t-grid-item>
</block>
</t-grid>
</view>
</scroll-view>
</view>