empty.vue 711 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="hl88-lr-empty">
  3. <view class="hl88-lr-empty-tag">
  4. <text class="hl88-lr-empty-text">{{text}}</text>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. name: 'LiveRoomEmpty',
  11. props: {
  12. text: {
  13. type: String,
  14. default: ''
  15. }
  16. }
  17. }
  18. </script>
  19. <style>
  20. .hl88-lr-empty{
  21. position: absolute;
  22. left: 0;
  23. right: 0;
  24. top: 0;
  25. bottom: 0;
  26. align-items: center;
  27. justify-content: center;
  28. }
  29. .hl88-lr-empty-tag{
  30. background-color: rgba(255,100,0,.3);
  31. height: 70rpx;
  32. padding-left: 20rpx;
  33. padding-right: 20rpx;
  34. align-items: center;
  35. justify-content: center;
  36. border-radius: 100px;
  37. }
  38. .hl88-lr-empty-text{
  39. font-size: 32rpx;
  40. color: #ffffff;
  41. }
  42. </style>