article-author.vue
744 Bytes
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
<template>
<div class="container">
<WidgetAvatar :lazy="true" class="widget-avatar" :src="userHeadIco" :width="70" :height="70"></WidgetAvatar>
<span>{{userName}}</span>
</div>
</template>
<script>
import WidgetAvatar from '../../../components/widget-avatar';
export default {
name: 'articleAuthor',
components: {
WidgetAvatar
},
props: {
userHeadIco: String,
userName: String
}
};
</script>
<style lang="scss" scoped>
.container {
height: 100px;
padding-left: 24px;
display: flex;
flex-direction: row;
align-items: center;
.widget-avatar {
width: 70px;
height: 70px;
}
span {
margin-left: 20px;
font-size: 24px;
color: #222;
letter-spacing: 0.05px;
}
}
</style>