app-empty-bottom.vue 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="empty-bottom" :style="{backgroundColor: backgroundColor,height: `${botBool ? BotHeight + height : height + emptyHeight}rpx`,}"></view>
  3. </template>
  4. <script>
  5. import {mapGetters} from 'vuex';
  6. export default {
  7. name: "app-empty-bottom",
  8. props: {
  9. backgroundColor: {
  10. type: String,
  11. default() {
  12. return 'white';
  13. }
  14. },
  15. height: {
  16. type: Number,
  17. default() {
  18. return 0;
  19. }
  20. },
  21. botBool: {
  22. type: Boolean,
  23. default() {
  24. return false;
  25. }
  26. }
  27. },
  28. computed: {
  29. ...mapGetters('iPhoneX', {
  30. BotHeight: 'getBotHeight',
  31. emptyHeight: 'getEmpty',
  32. })
  33. }
  34. }
  35. </script>
  36. <style scoped lang="scss">
  37. .empty-bottom {
  38. width: 100%;
  39. }
  40. </style>