index.vue 798 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="container body">
  3. <view class="info">
  4. <scroll-view scroll-y="true" class="scroll-view">
  5. <view class="list-scroll-view">
  6. <slot></slot>
  7. </view>
  8. </scroll-view>
  9. </view>
  10. <view class="foot" v-if="frameStyle&&frameStyle.useBar||false">
  11. 底部菜单
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. frameStyle: {
  19. type: Object,
  20. }
  21. },
  22. data() {
  23. return {};
  24. }
  25. }
  26. </script>
  27. <style lang="scss">
  28. .body {
  29. .info {
  30. position: relative;
  31. flex-grow: 1;
  32. }
  33. .foot {
  34. height: 8vh;
  35. overflow: hidden;
  36. background-color: var(--footColor);
  37. }
  38. }
  39. .scroll-view {
  40. position: absolute;
  41. top: 0;
  42. left: 0;
  43. right: 0;
  44. bottom: 0;
  45. .list-scroll-view {
  46. display: flex;
  47. flex-direction: column;
  48. }
  49. }
  50. </style>