多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.1 KiB

2 years ago
  1. <!--
  2. * @FileDescription: index
  3. * @Author: kahu
  4. * @Date: 2022/11/11
  5. * @LastEditors: kahu
  6. * @LastEditTime: 2022/11/11
  7. -->
  8. <template>
  9. <view v-if="show" class="empty-content" :style="{
  10. paddingTop: this.paddingTop+'rpx',
  11. background: this.background
  12. }">
  13. <image :src="iconUrl" />
  14. <p class="tips">
  15. <slot>
  16. 暂无数据~
  17. </slot>
  18. </p>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. name: "empty",
  24. data() {
  25. return {}
  26. },
  27. props:{
  28. show:{
  29. type:Boolean,
  30. default:false
  31. },
  32. paddingTop:{
  33. type:Number,
  34. default:()=>500
  35. },
  36. background:{
  37. type:String,
  38. default:()=>'#f8f8f8'
  39. },
  40. iconUrl:{
  41. type:String,
  42. default:()=>'https://ceres.zkthink.com/static/images/searchEmpty.png'
  43. }
  44. },
  45. computed:{
  46. },
  47. methods: {}
  48. }
  49. </script>
  50. <style
  51. lang="scss"
  52. scoped
  53. >
  54. .empty-content{
  55. display: flex;
  56. justify-content: center;
  57. flex-direction: column;
  58. align-items: center;
  59. image{
  60. width:150rpx;
  61. height: 150rpx;
  62. }
  63. .tips{
  64. margin-top: 25rpx;
  65. font-weight: bolder;
  66. }
  67. }
  68. </style>