# 话题列表组件开发
<view class="topic-new">
<view>最近更新</view>
<view class="topic-list">
<image src="../../static/demo/topicpic/12.jpeg" mode="widthFix"></image>
<view class="topic-content">
<view>#话题名称#</view>
<view>我是话题名称</view>
<view>动态 10 今日 5</view>
</view>
</view>
</view>
<style>
/* 最近更新 */
.topic-new {
padding: 20rpx;
view {
&:first-child {
font-size: 32rpx;
}
}
.topic-list {
padding: 10rpx 0;
border-bottom: 1rpx solid #333;
display: flex;
image {
width: 150rpx;
height: 150rpx;
border-radius: 10rpx;
margin-right: 20rpx;
}
.topic-content {
view {
color: #a4a4a4;
&:first-child {
color: #333;
font-size: 32rpx;
}
}
}
}
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43