wupengfei
2025-05-06 e9dda9e6c52cb737267185f5118ded73c0053115
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
<template>
  <div class="insure-detail-content">
    <div class="insure-detail-content-title" v-if="title || $slots.title || $slots.titleRight">
      <div class="insure-detail-content-title-inner">
        <slot name="title">
          <span>{{ title }}</span>
        </slot>
      </div>
      <div class="insure-detail-content-title-right">
        <slot name="title-right"></slot>
      </div>
    </div>
    <div class="insure-detail-content-wrapper">
      <slot name="content"></slot>
    </div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'InsureDetailContent',
});
 
type Props = {
  title?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.insure-detail-content {
  margin: 40px 0;
  border: #e8e8e8 1px solid;
  border-radius: 4px;
 
  .insure-detail-content-title {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 40px;
    background: #f5f5f5;
  }
 
  .insure-detail-content-title-inner {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: getCssVar('text-color', 'primary');
  }
 
  .insure-detail-content-wrapper {
    padding: 40px 24px;
  }
}
</style>