v-bottom-menu.vue 673 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="v-bottom-menu">
  3. <u-gap :height="height"></u-gap>
  4. <view class="menu" :style="{ height: height + 'rpx' }"><slot></slot></view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. props: {
  10. gap: {
  11. type: Boolean,
  12. default: true
  13. },
  14. height: {
  15. type: [Number, String],
  16. default: 120
  17. }
  18. },
  19. data() {
  20. return {}
  21. }
  22. }
  23. </script>
  24. <style lang="scss">
  25. .v-bottom-menu {
  26. .menu {
  27. position: fixed;
  28. bottom: 0;
  29. left: 0;
  30. display: flex;
  31. align-items: center;
  32. justify-content: space-between;
  33. width: 750rpx;
  34. padding: 0 24rpx;
  35. background: #fff;
  36. box-shadow: -2rpx -6rpx 16rpx 0rpx rgba(53, 53, 53, 0.1);
  37. z-index: 1000;
  38. }
  39. }
  40. </style>