提交 35bc03bd 编写于 作者: shutao-dc's avatar shutao-dc

list-news.uvue示例 list-item补充type属性

上级 5a31c80d
<template> <template>
<list-view style="flex: 1;" refresher-enabled=true @refresherrefresh="onRefresherrefresh" <list-view style="flex: 1;" refresher-enabled=true @refresherrefresh="onRefresherrefresh"
:refresher-triggered="refresherTriggered"> :refresher-triggered="refresherTriggered">
<list-item class="banner" @click="bannerClick(banner)"> <list-item class="banner" @click="bannerClick(banner)" type=1>
<image class="banner-img" :src="banner.cover"></image> <image class="banner-img" :src="banner.cover"></image>
<text class="banner-title">{{ banner.title }}</text> <text class="banner-title">{{ banner.title }}</text>
</list-item> </list-item>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</text> </text>
</view> </view>
</sticky-header> </sticky-header>
<list-item v-for="(value, index) in listData" :key="index"> <list-item v-for="(value, index) in listData" :key="index" type=2>
<view class="uni-list-cell" hover-class="uni-list-cell-hover" @click="goDetail(value)"> <view class="uni-list-cell" hover-class="uni-list-cell-hover" @click="goDetail(value)">
<view class="uni-media-list"> <view class="uni-media-list">
<image class="uni-media-list-logo" :src="value.cover"></image> <image class="uni-media-list-logo" :src="value.cover"></image>
...@@ -207,4 +207,4 @@ ...@@ -207,4 +207,4 @@
color: #9D9D9F; color: #9D9D9F;
font-size: 25rpx; font-size: 25rpx;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册