cloudroam
2025-01-09 04be125365bfd254166072f75da87e406f633ba3
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
<template>
  <el-card class="content-wrapper">
    <div slot="header" class="content-wrapper__header">
      <div class="content-wrapper__header__title">{{ title }}</div>
      <slot name="header-right"></slot>
    </div>
    <slot></slot>
  </el-card>
</template>
 
<script>
export default {
  props: {
    title: {
      type: String,
      default: '',
    },
  },
}
</script>
 
<style lang="scss" scoped>
.content-wrapper {
  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    &__title {
      font-size: $font-size-lg;
      color: $main-title-color;
      font-weight: 500;
      line-height: 2;
    }
  }
}
</style>