- <view class="table">
- <view class="roof" />
- <Yl_ListBox id='ListBox' scrollX='{{true}}' bind:getlist='getList'>
- <view style="width:{{sumWidth}}rpx;">
- <view class="table-head">
- <view wx:for="{{table}}" style="width: {{item.width+'rpx'}};" wx:key="title">{{language[item.title]||item.title}}</view>
- </view>
- <Yl_Empty wx:if="{{list.length==0}}" />
- <view class="line" wx:for="{{list}}" wx:key="rowindex">
- <view wx:for="{{table}}" style="width: {{col.width+'rpx'}};" hover-class="{{col.fun?'navigator-hover':''}}" bind:tap="{{col.fun||''}}" wx:for-item="col" wx:key="title" class="line-1">
- {{language[item[col.key]]||item[col.key]||'--'}}
- </view>
- </view>
- </view>
- </Yl_ListBox>
- </view>
|