toast.vue 550 B

12345678910111213141516171819202122232425
  1. <template>
  2. <transition name="fade">
  3. <div class="toast" v-html="text" v-show="show"></div>
  4. </transition>
  5. </template>
  6. <style lang="scss">
  7. .toast{
  8. background: url('img/board_tips.png') center center no-repeat;
  9. background-size: 100%;
  10. width: px2rem(1365);
  11. height: px2rem(146);
  12. position: fixed;
  13. top: 50%;
  14. left: 50%;
  15. transform: translate(-50%, -50%);
  16. z-index: 5200;
  17. line-height: 1.5;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. font-size: px2rem(48);
  22. color: #ffffff;
  23. pointer-events: none;
  24. }
  25. </style>