nodata.vue 735 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <view class="nodata" :style="'padding-top:'+padtop+'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,
  18. default () {
  19. return 100
  20. }
  21. }
  22. },
  23. data(){
  24. return{
  25. noiconpimg:require("@/static/images/noiconp.png"),
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. // 无数据
  32. .nodata{
  33. display: flex;flex-direction: column;align-items: center;box-sizing: border-box;padding-bottom: 100rpx;
  34. image{width: 198rpx;height: 194rpx;margin-bottom: 44rpx;}
  35. view{font-size: 26rpx;color: #AAAAAA;font-weight: bold;}
  36. }
  37. </style>