zhengyiming
2025-02-10 958b79ed89b9e742540f714a80261d222c0fc09b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<template>
  <div class="app-container">
    <el-aside v-if="!!slots.aside" class="app-aside">
      <slot name="aside" />
    </el-aside>
 
    <section class="app-main">
      <slot />
    </section>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'AppContainer',
});
 
const slots = useSlots();
</script>
 
<style lang="scss">
@use '@/style/common.scss' as *;
 
.app-container {
  display: flex;
  padding: $bole-container-padding;
  height: 100%;
  // flex-direction: column;
  // border: 1px solid getCssVar('table-border', 'color');
 
  .app-aside {
    display: flex;
    overflow: hidden;
    margin-right: 10px;
    padding: 34px 28px 20px;
    width: 400px;
    background-color: getCssVar('color-white');
    flex-direction: column;
    @include utils-shadow;
  }
 
  .app-main {
    display: flex;
    width: 0;
    height: 100%;
    flex: 1;
    flex-direction: column;
  }
}
</style>