2019-06-23 03:35:23 -07:00
|
|
|
<template>
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="scroll">
|
|
|
|
<div class="content">
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2023-04-21 08:51:08 -07:00
|
|
|
import { defineComponent } from 'vue';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2023-04-21 08:51:08 -07:00
|
|
|
export default defineComponent({
|
2022-12-14 01:04:10 -08:00
|
|
|
name: 'PageContentWrapper',
|
|
|
|
});
|
2019-06-23 03:35:23 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.wrapper {
|
|
|
|
padding-top: 40px;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: calc(100% - 40px);
|
|
|
|
}
|
|
|
|
.scroll {
|
|
|
|
overflow-y: auto;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.content {
|
|
|
|
padding: 1em;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
</style>
|