<template>
  <div class="loading-wrap">
    <progress type="circular" if="!empty"></progress>
    <text>{{text}}</text>
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      default: "加载ing..."
    },
    empty: {
      type: Boolean,
      default: false
    }
  },
}
</script>


<style lang="less" scoped>
.loading-wrap {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 80px;

  text {
    font-size: 26px;
    color: #999;
  }
}
</style>
