queenwuli
2020-12-27 cc499362b6eba119792e113796e4da029a70fc6d
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
<template>
    <view class="no-record" v-if="isShow">
        <image src="../../static/images/no-data.png" :class="size==='mini'?'mini-img':'normal-img'" mode="widthFix"></image>
        <text>{{txt}}</text>
    </view>
</template>
 
<script>
    export default{
        props:{
            isShow: {
                default: false
            },
            size: {
                default: 'normal'
            },
            txt: {
                default: '暂无数据'
            }
        }
    }
</script>
 
<style>
    .no-record{
        text-align: center;
        font-size: 14px;
        color: rgb(171, 177, 204);
        margin-top: 30%;
    }
    .no-record image{
        display: block;
        margin: 0 auto 10px;
    }
    .normal-img{
        width: 160px;
    }
    .mini-img{
        width: 100px;
    }
</style>