zhengyiming
2025-02-10 0470145fcd755d3f87bffc7a985bd3cc82c5f3f6
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="chunk-title-wrapper">
    <div class="chunk-title-line"></div>
    <div class="chunk-title">{{ title }}</div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'ChunkTitle',
});
 
type Props = {
  title?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.chunk-title-wrapper {
  padding: 32px 0;
  display: flex;
  align-items: center;
 
  .chunk-title-line {
    width: 4px;
    height: 32px;
    background: linear-gradient(90deg, #7198fb 0%, #3a71ff 100%);
    border-radius: 2px;
    margin-right: 16px;
  }
 
  .chunk-title {
    font-weight: 600;
    font-size: 28px;
    color: boleGetCssVar('text-color', 'primary');
    line-height: 32px;
  }
}
</style>