spring
2025-03-12 0f139abd46d8f8f356e5cdc841107de69d585345
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
<template>
  <div :class="{ 'basic-container--block': block }" class="basic-container">
    <!-- <el-card>
      <slot />
    </el-card> -->
    <slot />
  </div>
</template>
 
<script>
export default {
  name: "BasicContainer",
  props: {
    block: {
      type: Boolean,
      default: false,
    },
  },
};
</script>
 
<style lang="scss">
.basic-container {
  padding: 15px;
  margin: 10px 15px;
  // border-radius: 10px;
  box-sizing: border-box;
  background-color: #fff;
  .el-card {
    width: 100%;
    box-sizing: border-box;
  }
  &:first-child {
    // padding-top: 0;
  }
  &--block {
    height: 100%;
    .el-card {
      height: 100%;
    }
  }
}
</style>