<template>
  <van-popup
    v-model="visible"
    :close-on-click-overlay="false"
    :overlay-style="{ background: '#fff' }"
    class="custom-popup"
  >
    <div class="loading">
      <AudioWave class="loading__audio"></AudioWave>
    </div>
  </van-popup>
</template>

<script>
import AudioWave from './modules/AudioWave'

export default {
  name: 'Load',
  components: {
    AudioWave,
  },
  props: {
    value: {
      type: Boolean,
      default: true,
    },
  },
  computed: {
    visible: {
      get() {
        return this.value
      },
      set(val) {
        this.$emit('input', val)
      },
    },
  },
}
</script>

<style lang="less" scoped>
.custom-popup {
  background-color: transparent;
}
.loading {
  // background: rgba(255, 255, 255, 1);
  background-color: transparent;
  height: 100px;
  justify-content: center;
  align-items: center;
  display: flex;
}
</style>
