wupengfei
2025-02-18 a261170567648a5b425077049835ce8b7fb0c466
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
<template>
  <div class="cell-chunk-wrapper">
    <div class="cell-title-wrapper">
      <slot name="title">
        <div :class="titleSize === 'normal' ? 'cell-title' : 'cell-title-large'">{{ title }}</div>
        <slot name="title-right"></slot>
      </slot>
    </div>
    <slot></slot>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'CellChunk',
});
 
type Props = {
  title?: string;
  titleSize?: 'large' | 'normal';
};
 
const props = withDefaults(defineProps<Props>(), {
  titleSize: 'normal',
});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.cell-chunk-wrapper {
  margin-bottom: 20px;
 
  &:last-child {
    margin-bottom: 0;
  }
}
</style>