<template>
  <div class="toast">
    <div class="txt">
      {{ toastTxt }}
    </div>
  </div>
</template>

<script setup>
import { toastTxt } from "@/store/index.js"
const {
  windowSizeInCssForRef,
  windowSizeWhenDesignForRef,
} = useSizeAdapt()

</script>

<style lang="less" scoped>
.toast{
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 999;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(@/assets/images/toast-bg.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  padding-top: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  padding-bottom: calc(20 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
  >.txt{
    font-size: calc(16 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    font-weight: 400;
    color: #4A443A;
    line-height: calc(19 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
    white-space: pre;
  }
}
</style>