Blame view

ceres-uniapp-master/components/Empty/index.vue 1.14 KB
3f535f30   杨鑫   '初始'
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
  <!--
      * @FileDescription: index
      * @Author: kahu
      * @Date: 2022/11/11
      * @LastEditors: kahu
      * @LastEditTime: 2022/11/11
  -->
  <template>
    <view v-if="show" class="empty-content" :style="{
          paddingTop: this.paddingTop+'rpx',
          background: this.background
        }">
      <image :src="iconUrl" />
      <p class="tips">
        <slot>
          暂无数据~
        </slot>
      </p>
    </view>
  </template>
  
  <script>
  export default {
    name: "empty",
    data() {
      return {}
    },
    props:{
      show:{
        type:Boolean,
        default:false
      },
      paddingTop:{
          type:Number,
          default:()=>500
      },
      background:{
        type:String,
        default:()=>'#f8f8f8'
      },
      iconUrl:{
        type:String,
844aa73a   杨鑫   '最新'
43
        default:()=>'https://jy.scjysm.asia:18086/cdwlMall/questionnaire/file/static/images/searchEmpty.png'
3f535f30   杨鑫   '初始'
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
      }
    },
    computed:{
  
    },
    methods: {}
  }
  </script>
  
  <style
      lang="scss"
      scoped
  >
  .empty-content{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    image{
      width:150rpx;
      height: 150rpx;
    }
    .tips{
      margin-top: 25rpx;
      font-weight: bolder;
    }
  }
  
  </style>