Skip to content

Commit 41aaaee

Browse files
author
wangyaqi
committed
update: 顶部选项卡图文添加hover-class
1 parent d1308d7 commit 41aaaee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pages/template/tabbar/news-item.nvue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<!-- remove list-cell layer fix android 4.x overflow limit error: 28 layers! -->
33
<!-- <view class="list-cell view" @click="click"></view> -->
4-
<view class="media-item view" v-if="options.title" @click="click">
4+
<view class="media-item view" hover-class="media-item-hover" v-if="options.title" @click="click">
55
<!-- <view class="view" :style="options.article_type === 2 ? 'flex-direction: row';" :class="{'media-image-right': options.article_type === 2, 'media-image-left': options.article_type === 1}"> -->
66
<!-- TODO 在支付宝小程序下 需要用 style 覆盖标签的默认样式 -->
77
<view class="view" :style="{flexDirection: (options.article_type === 1 || options.article_type === 2)?(options.article_type === 2 ?'row':'row-reverse'):'column' }">
@@ -82,6 +82,10 @@
8282
padding: 20upx 30upx 21upx 30upx;
8383
}
8484

85+
.media-item-hover{
86+
background-color: #eee;
87+
}
88+
8589
.media-item-line {
8690
position: absolute;
8791
left: 30upx;

0 commit comments

Comments
 (0)