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
| <template>
| <div class="chunk-cell-v2">
| <div class="chunk-cell-v2-title">{{ props.title }}</div>
| <div class="chunk-cell-v2-content"><slot></slot></div>
| </div>
| </template>
|
| <script setup lang="ts">
| defineOptions({
| name: 'ChunkCellV2',
| });
|
| type Props = {
| title?: string;
| };
|
| const props = withDefaults(defineProps<Props>(), {
| title: '',
| });
| </script>
|
| <style lang="scss" scoped>
| @use '@/style/common.scss' as *;
|
| .chunk-cell-v2 {
| .chunk-cell-v2-title {
| height: 48px;
| font-size: 16px;
| color: getCssVar('text-color', 'primary');
| line-height: 48px;
| }
| margin-bottom: 24px;
| border-bottom: 1px solid getCssVar('border-color', 'lighter');
|
| &:last-child {
| margin-bottom: 0;
| border-bottom: none;
| }
| }
| </style>
|
|