he wei
2025-06-06 895129470d7ee48183fc15b9ee18ef0880503e5d
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
51
52
53
54
55
56
57
58
59
60
61
<template>
  <div class="layout-container">
    <div class="layout-container-header">
      <slot name="header"></slot>
    </div>
    <div class="layout-container-body">
      <div class="layout-absolute">
        <div class="layout-content-container">
          <div class="layout-container-left">
            <slot name="left"></slot>
          </div>
          <div class="layout-content-container-body">
            <div class="layout-absolute">
              <slot></slot>
            </div>
          </div>
          <div class="layout-container-right">
            <slot name="right"></slot>
          </div>
        </div>
      </div>
    </div>
    <div class="layout-container-footer">
      <slot name="footer"></slot>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "LayoutContainer"
}
</script>
 
<style scoped>
.layout-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.layout-container-body,
.layout-content-container-body {
  position: relative;
  flex: 1;
}
.layout-absolute {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
}
.layout-content-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}
</style>