|
|
|
@ -1,24 +1,27 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<section class="base-container">
|
|
|
|
<section
|
|
|
|
|
|
|
|
class="base-container"
|
|
|
|
|
|
|
|
:style="{ height: hideTabs ? 'calc(100vh - 81px)' : 'calc(100vh - 48px)' }"
|
|
|
|
|
|
|
|
>
|
|
|
|
<slot></slot>
|
|
|
|
<slot></slot>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
// import { computed } from 'vue';
|
|
|
|
import { computed } from 'vue';
|
|
|
|
// import { useGlobal } from '@pureadmin/utils';
|
|
|
|
import { useGlobal } from '@pureadmin/utils';
|
|
|
|
// const { $storage } = useGlobal();
|
|
|
|
const { $storage } = useGlobal();
|
|
|
|
|
|
|
|
|
|
|
|
// const hideTabs = computed(() => {
|
|
|
|
const hideTabs = computed(() => {
|
|
|
|
// return $storage?.configure.hideTabs;
|
|
|
|
return $storage?.configure.hideTabs;
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
<style lang="scss">
|
|
|
|
.base-container {
|
|
|
|
.base-container {
|
|
|
|
overflow: auto;
|
|
|
|
overflow: auto;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
// flex: 1; 父元素的flex不能设置1,必须设置具体的高度数值,否则内部table不能自身内部滚动
|
|
|
|
flex-direction: column;
|
|
|
|
flex-direction: column;
|
|
|
|
height: calc(100vh - 81px);
|
|
|
|
height: calc(100vh - 81px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|