Loading.vue 849 Bytes
<template>
  <div class="flex loading-container" v-show="loadingShow">
    <a-spin />
    <span class="txt"></span>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "Loading",
  data() {
    return {};
  },
  computed: {
    ...mapGetters("common", ["loadingShow"]),
  }
};
</script>

<style lang="less" scoped>
.loading-container {
  width: 159px;
  height: 44px;
  background: #f8faff;
  box-shadow: 0px 2px 4px 0px rgba(208, 220, 254, 1);
  border-radius: 22px;
  justify-content: center;
  position: absolute;
  z-index: 10;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  .txt {
    font-size: 16px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #252631;
    line-height: 22px;
    margin-left: 12px;
  }
  .ant-spin {
    margin-top: 4px;
  }
}
</style>