queenwuli
2020-12-27 cc499362b6eba119792e113796e4da029a70fc6d
hive-app/components/noRecord/index.vue
@@ -1,11 +1,24 @@
<template>
   <view class="no-record">
      <image src="../../static/images/no-data.png" mode="widthFix"></image>
      <text>暂无数据</text>
   <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>
@@ -17,7 +30,12 @@
   }
   .no-record image{
      display: block;
      width: 170px;
      margin: 0 auto 10px;
   }
   .normal-img{
      width: 160px;
   }
   .mini-img{
      width: 100px;
   }
</style>