app-empty.vue 634 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view class="app-empty" :style="{height: height + 'rpx',backgroundColor: backgroundColor}"></view>
  3. </template>
  4. <script>
  5. export default {
  6. name: "app-empty",
  7. props: {
  8. height: {
  9. type: Number,
  10. default() {
  11. return 10;
  12. }
  13. },
  14. backgroundColor: {
  15. type: String,
  16. default() {
  17. return `#ffffff`;
  18. }
  19. }
  20. }
  21. }
  22. </script>
  23. <style scoped lang="scss">
  24. .app-empty {
  25. width: 100%;
  26. display: block;
  27. }
  28. </style>