index.vue 698 Bytes
<template>
  <div class="empty-tips" v-if="visb">
    <div class="tips">
      <span class="iconfont iconempty"></span>
      <div class="tips">{{innerText ? innerText :'这里空空如也~'}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['visb', 'innerText'],
  data() {
    return {
      key: 'value'
    }
  }
}
</script>

<style lang="scss" scoped>
.empty-tips {
  box-sizing: border-box;
  position: fixed;
  text-align: center;
  color: #666666;
  font-size: 32px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  top: 35%;

  .iconfont {
    font-size: 100px;
  }

  .tips {
    position: relative;
    padding: 20px;
  }
}
</style>