Tip.vue
895 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
44
45
46
47
48
49
50
51
52
<template>
<div class="hint-tip">
<div class="tip-title">{{ title }}</div>
<div class="tip-date" v-if="time">{{ time }}</div>
</div>
</template>
<script>
export default {
name: 'tip',
data() {
return {
time: this.date
}
},
props: {
title: {
type: String,
default: ''
},
date: {
type: String,
default: ''
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.hint-tip {
margin: 0 16px;
height: 40px;
line-height: 40px;
background: #f7f7f7;
box-shadow: 0px 1px 0px 0px #e9e9e9;
box-sizing: border-box;
display: flex;
justify-content: center;
justify-content: space-between;
.tip-title {
color: #545454;
font-size: 16px;
text-align: left;
letter-spacing: 0px;
}
.tip-date {
font-size: 12px;
font-weight: 500;
color: #545454;
line-height: 20px;
}
}
</style>