emptyData.vue 757 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="flex-col">
  3. <image
  4. class="image_wrapper"
  5. src="/static/images/new_ui/empty_data.png"
  6. />
  7. <view class="text_tilte">{{title}}</view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. props:{
  13. title:{
  14. type:String,
  15. default:"暂无数据"
  16. }
  17. },
  18. data() {
  19. return {
  20. };
  21. }
  22. }
  23. </script>
  24. <style lang="scss">
  25. .flex-col{
  26. user-select: none;
  27. text-align: center;
  28. width:100%;
  29. position: absolute;
  30. top:30%;
  31. .text_tilte{
  32. font-family: PingFangSC, PingFang SC;
  33. font-weight: 400;
  34. font-size: 30rpx;
  35. color: #333333;
  36. line-height: 30rpx;
  37. text-align: center;
  38. font-style: normal;
  39. }
  40. .image_wrapper{
  41. width: 327px;
  42. height: 257px;
  43. }
  44. }
  45. </style>