fix
Helius
2021-02-20 45fb4b11ad51bb38306765b11a6747402e382cee
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
<template>
    <view class="no-record" :class="size==='mini'?'mini':''" v-if="isShow">
        <image src="../../static/images/no-data.png" 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);
        padding-top: 30%;
    }
    .no-record.mini{
        padding-top: 0;
    }
    .no-record image{
        display: block;
        margin: 0 auto 10px;
        width: 160px;
    }
    .no-record.mini image{
        width: 100px;
    }
</style>