LoadingOverlayComponent.vue 926 Bytes
Newer Older
hucy's avatar
hucy committed
1 2 3 4 5 6 7 8 9 10 11
<!--
 * Ag Grid 加载中蒙版自定义组件
  -->
<script setup lang="ts">
defineProps<{
  params: any;
}>();
</script>
<template>
  <div class="my-ag-grid-loading-overlay-component">
    <div class="my-ag-grid-loading-overlay-component-conten">
hcyhuchaoyue's avatar
hcyhuchaoyue committed
12
      <q-spinner-clock size="3em" style="color: var(--my-ag-grid-primary)" />
hucy's avatar
hucy committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
      <span>加载中...</span>
    </div>
  </div>
</template>

<style lang="scss">
.my-ag-grid-loading-overlay-component {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  .my-ag-grid-loading-overlay-component-conten {
    box-sizing: border-box;
    width: 100%;
    height: calc(100% - 50px);
hcyhuchaoyue's avatar
hcyhuchaoyue committed
32
    color: var(--my-ag-grid-primary);
hucy's avatar
hucy committed
33 34 35 36 37 38 39 40 41 42 43

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    > span {
      margin-top: 5px;
    }
  }
}
</style>