no-data.vue 573 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="no-data">
  3. <image class="no-data-icon" src="@/static/images/empty_01.png" mode="aspectFit"></image>
  4. <view class="no-data-text">
  5. {{ text }}
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. name:"no-data",
  12. props:{
  13. text:{
  14. type:String,
  15. default:'暂无数据'
  16. }
  17. },
  18. data() {
  19. return {
  20. };
  21. }
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .no-data{
  26. width: 100%;
  27. text-align: center;
  28. .no-data-icon{
  29. width: 175rpx;
  30. height: 175rpx;
  31. }
  32. .no-data-text{
  33. font-size: 28rpx;
  34. padding-top: 30rpx;
  35. }
  36. }
  37. </style>