<!--
  @name: 加载框
  @description: -
  @author 张文
  @date: 2022-01-24
-->
<template>
  <div class="ty-global-flex-center ty-loading" v-if="loading > 0">
    <div class="ty-global-flex-center ty-loading-block">
      <span class="van-loading__spinner van-loading__spinner--circular" style="width: 24px; height: 24px;">
        <svg viewBox="25 25 50 50" class="van-loading__circular">
          <circle cx="50" cy="50" r="20" fill="none"></circle>
        </svg>
      </span>
      <div style="margin-top: 5px">{{ msg || $tyLanguage.get('wms_project.pda.common.loading', '加载中') + '...' }}</div>
    </div>
  </div>
</template>

<script>

export default {
  name: "tyLoading",
  data() {
    return {
      msg:'',
      loading:0
    }
  }
}
</script>

<style lang="less" scoped>


@import "../../assets/css/var.less";

.ty-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483583;
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 12px;

  &-block {
    padding: 16px;
    border-radius: 8px;
    width: 88px;
    max-width: 70%;
    min-height: 88px;
    background-color: #4f4f4f;
    flex-direction: column;
  }
}


</style>
