incomeDetail.vue
795 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
<template>
<div class="income-detail-header">
<p class="total-income">收入明细</p>
<div v-if="data.length === 0" class="no-data">暂无收入明细</div>
<div v-else>
<incomeItem :data="data"></incomeItem>
</div>
</div>
</template>
<script>
import incomeItem from './incomeItem'
export default {
name: 'income-detail',
props: {
data: {
type: Array,
default: []
}
},
data() {
return {
};
},
components: {
incomeItem
}
};
</script>
<style lang="scss" scoped>
.total-income {
font-size: 36px;
padding: 15px;
border-bottom: solid 1px #eee;
}
.no-data {
color: #ccc;
font-weight: bold;
text-align: center;
font-size: 42px;
padding: 100px 0;
}
</style>