empty.vue 797 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <!-- <view class="box" :style="{'background':bcolor,'paddingTop':pt}"> -->
  3. <view class="box" :style="{'background':bcolor}">
  4. <image src="../../static/empty.png" mode=""></image>
  5. <view class="" style="font-size: 26rpx;color:#aaa">
  6. 暂无数据~
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: "empty",
  13. data() {
  14. return {
  15. };
  16. },
  17. props: {
  18. bcolor: {
  19. type: String,
  20. default: ''
  21. },
  22. pt: {
  23. type: String,
  24. default: '50%'
  25. },
  26. },
  27. onLoad() {
  28. console.log(this.bcolor, '132423325');
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. image {
  34. width: 200rpx;
  35. height: 200rpx;
  36. }
  37. .box {
  38. display: flex;
  39. justify-content: center;
  40. flex-direction: column;
  41. align-items: center;
  42. // background: red;
  43. height: 500rpx;
  44. }
  45. </style>