li-guang
2021-01-07 9203a43facf5fd967aaafcfc41541a9f4565869a
hive-app/components/noRecord/index.vue
@@ -1,11 +1,24 @@
<template>
   <view class="no-record">
   <view class="no-record" :class="size==='mini'?'mini':''" v-if="isShow">
      <image src="../../static/images/no-data.png" mode="widthFix"></image>
      <text>暂无数据</text>
      <text>{{txt}}</text>
   </view>
</template>
<script>
   export default{
      props:{
         isShow: {
            default: false
         },
         size: {
            default: 'normal'
         },
         txt: {
            default: '暂无数据'
         }
      }
   }
</script>
<style>
@@ -13,11 +26,17 @@
      text-align: center;
      font-size: 14px;
      color: rgb(171, 177, 204);
      margin-top: 30%;
      padding-top: 30%;
   }
   .no-record.mini{
      padding-top: 0;
   }
   .no-record image{
      display: block;
      width: 170px;
      margin: 0 auto 10px;
      width: 160px;
   }
   .no-record.mini image{
      width: 100px;
   }
</style>