只看到有人使用了这个样式:
<view class="uni-list">
<view class="uni-list-cell" hover-class="uni-list-cell-hover" v-for="(value,key) in listData" :key="key" @tap='showDetail(value)'>
<view class="uni-list-cell-navigate uni-navigate-right uni-media-list ">
<view class="uni-media-list-logo">
<image :src="value.image_url ? value.image_url : '../../static/logo.png'"></image>
</view>
<view class="uni-media-list-body">
<view class="uni-media-list-text-top uni-ellipsis">{{value.title}}</view>
<view class="uni-media-list-text-bottom uni-ellipsis">发表于:{{value.datetime}}</view>
</view>
</view>
</view>
</view>
问题是我在插件市场,看unilist 演示,根本没有引用到这个 uni-list-cell-navigate,但是 common/uni.css里面又规定了这个样式,具体演示在哪里呢?
新版uni-list演示代码是这样的:
<uni-list>
<uni-list-item title="标题文字" :show-arrow="false"></uni-list-item>
<uni-list-item title="标题文字"></uni-list-item>
<uni-list-item title="标题文字" :show-badge="true" badge-text="12"></uni-list-item>
<uni-list-item title="禁用状态" :disabled="true" :show-badge="true" badge-text="12"></uni-list-item>
</uni-list>
完全不一样了
0 个回复