|
list组件没有渲染- <template>
- <list class="tutorial-page" @scrollbottom="loadMoreData">
- <block for="{{list}}">
- <list-item type="productLeft" class="content-item" if="{{$idx%2 === 0}}">
- <image class="img" src="{{$item.imageUrl}}"></image>
- <div class="text-wrap">
- <div class="top-line">
- <text class="text-name">{{$item.title}}</text>
- </div>
- </div>
- </list-item>
- <list-item type="productRight" class="content-item" else>
- <div class="text-wrap">
- <div class="top-line">
- <text class="text-name">{{$item.title}}</text>
- </div>
- </div>
- <image class="img" src="{{$item.imageUrl}}"></image>
- </list-item>
- </block>
- <list-item type="loadMore" class="load-more">
- <progress type="circular"></progress>
- <text>加载更多</text>
- </list-item>
- </list>
- </template>
复制代码- <style lang="less">
- .tutorial-page {
- width: 100%;
-
- .content-item {
- width: 100%;
- height: 100%;
- image {
- width: 200px;
- height: 200px;
- }
- }
- }
- </style>
复制代码
|
|