<t-tabs
|
class="{{displayMode == 0 ? '' : 'hidden'}}"
|
defaultValue="{{0}}"
|
value="{{tabIndex}}"
|
bind:change="onTabsChange"
|
bind:click="onTabsClick"
|
space-evenly="{{false}}"
|
t-class="custom-tabs"
|
t-class-item="custom-item"
|
t-class-track="custom-track"
|
t-class-content="custom-panel"
|
>
|
<t-tab-panel
|
wx:for="{{tabList}}"
|
wx:key="index"
|
label="{{item.name}}"
|
value="{{index}}"
|
badge-props="{{ {count:item.tag} }}"
|
class="custom-tab-panel"
|
>
|
<t-grid column="{{3}}" theme="card" gutter="{{40}}">
|
<t-grid-item
|
wx:for="{{pageList[index]}}"
|
wx:for-item="item2"
|
wx:for-index="index2"
|
wx:key="index2"
|
style="opacity: {{item2.opacity}};"
|
badge-props="{{ item2.badge }}"
|
image="slot"
|
data-index="{{[index, index2]}}"
|
bindtap="gotoLedgerDetail"
|
t-class-text="grid-item"
|
t-class-content="grid-content"
|
>
|
<view slot="image">
|
<t-image
|
src="{{item2.iconUrl}}"
|
mode="aspectFill"
|
width="48"
|
height="48"
|
/>
|
<view wx:if="{{item2.upLoad}}" class="top-left">
|
<t-icon name="check-circle-filled" size="24" color="green" />
|
</view>
|
</view>
|
<view slot="text"> {{item2.ledgerName}} </view>
|
</t-grid-item>
|
</t-grid>
|
</t-tab-panel>
|
</t-tabs>
|