nodata.vue 864 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="nodata" :style="'padding-top:'+padtop+'rpx;padding-bottom:'+padbottom+'rpx;'">
  3. <image :src="noiconpimg"></image>
  4. <view>{{notxt}}</view>
  5. </view>
  6. </template>
  7. <script>
  8. export default{
  9. props:{
  10. notxt:{
  11. type: String,
  12. default () {
  13. return '暂无数据'
  14. }
  15. },
  16. padtop:{
  17. type: [Number,String],
  18. default () {
  19. return 100
  20. }
  21. },
  22. padbottom:{
  23. type: [Number,String],
  24. default () {
  25. return 100
  26. }
  27. }
  28. },
  29. data(){
  30. return{
  31. noiconpimg:require("@/static/images/noiconp.png"),
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. // 无数据
  38. .nodata{
  39. display: flex;flex-direction: column;align-items: center;box-sizing: border-box;padding-bottom: 100rpx;
  40. image{width: 198rpx;height: 194rpx;margin-bottom: 44rpx;}
  41. view{font-size: 26rpx;color: #AAAAAA;font-weight: bold;}
  42. }
  43. </style>