feat: 部分全局布局容器

master
LCJ-MinYa 12 months ago
parent a52078d2dc
commit 03d438a2a9

@ -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; flex1table
flex-direction: column; flex-direction: column;
height: calc(100vh - 81px); height: calc(100vh - 81px);
} }

@ -1,4 +1,3 @@
const Layout = () => import('@/layout/index.vue');
import { route } from '@/utils/tools'; import { route } from '@/utils/tools';
const titleArr = [ const titleArr = [
{ {
@ -78,8 +77,6 @@ const demoRoutes = Object.keys(components).map((path) => {
export default { export default {
path: '/demo', path: '/demo',
name: 'Demo',
component: Layout,
redirect: '/demo/jsx', redirect: '/demo/jsx',
meta: { meta: {
icon: 'ep:data-analysis', icon: 'ep:data-analysis',

@ -1,11 +1,13 @@
<template> <template>
<Base-Container> <Base-Container>
<div class="flex">1</div>
<pure-table <pure-table
class="base-main" class="base-main"
:data="tableData" :data="tableData"
:columns="columns" :columns="columns"
size="large" size="large"
/> />
<div class="flex">2</div>
</Base-Container> </Base-Container>
</template> </template>

Loading…
Cancel
Save