<template>
  <transition name="fade">
    <div v-show="visible" class="mc-loading-mask" :class="[{ 'is-fullscreen': fullscreen }]">
      <div class="mc-loading-spinner">
        <p v-if="text" class="mc-loading-text"><i class="mc-icon-loading"></i>{{text}}</p>
      </div>        
    </div>
  </transition>
</template>

<script>
export default {
  props: {
    visible :{
      type: Boolean,
      default: false,
    },
    fullscreen :{
      type: Boolean,
      default: false,
    },
    text: {
      type: String,
      default: '努力加载中'
    },
  },
};
</script>