<template>
  <div
    class="upload-loading"
    v-loading="formLoading"
    element-loading-text="表单上传中。。。"
    element-loading-background="rgba(0,0,0, 0.2)"
  />
</template>

<script setup lang="ts">
defineProps<{
  formLoading: boolean;
}>();
</script>

<style lang="scss" scoped>
  .upload-loading {
    @include flex-center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
  }
</style>
