12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <template>
- <view class="container body">
- <view class="info">
- <scroll-view scroll-y="true" class="scroll-view">
- <view class="list-scroll-view">
- <slot></slot>
- </view>
- </scroll-view>
- </view>
- <view class="foot" v-if="frameStyle&&frameStyle.useBar||false">
- 底部菜单
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- frameStyle: {
- type: Object,
- }
- },
- data() {
- return {};
- }
- }
- </script>
- <style lang="scss">
- .body {
- .info {
- position: relative;
- flex-grow: 1;
- }
- .foot {
- height: 8vh;
- overflow: hidden;
- background-color: var(--footColor);
- }
- }
- .scroll-view {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- .list-scroll-view {
- display: flex;
- flex-direction: column;
- }
- }
- </style>
|