empty.vue 859 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. {{tipTxt}}~
  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. tipTxt: {
  27. type: String,
  28. default: '暂无数据'
  29. }
  30. },
  31. onLoad() {
  32. console.log(this.bcolor, '132423325');
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. image {
  38. width: 200rpx;
  39. height: 200rpx;
  40. }
  41. .box {
  42. display: flex;
  43. justify-content: center;
  44. flex-direction: column;
  45. align-items: center;
  46. // background: red;
  47. height: 300rpx;
  48. }
  49. </style>