wupengfei
2025-02-14 9486476bd79bb3bc6eeef2b1b69e6222fcd18b00
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
<template>
  <div class="curriculum-list-item">
    <div class="curriculum-list-item-label" :style="{ width: props.labelWidth }">
      {{ props.label }}
    </div>
    <div class="curriculum-list-item-text">
      <slot>{{ props.text }}</slot>
    </div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'CurriculumViewItem',
});
 
type Props = {
  label?: string;
  text?: string;
  labelWidth?: number | string;
};
 
const props = withDefaults(defineProps<Props>(), {
  labelWidth: 'auto',
});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.job-detail-content-tabs {
  .curriculum-list-item {
    display: flex;
    margin-bottom: 14px;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
 
    &:last-child {
      margin-bottom: 0;
    }
 
    .curriculum-list-item-label {
      color: boleGetCssVar('text-color', 'secondary');
    }
 
    .curriculum-list-item-text {
      color: boleGetCssVar('text-color', 'primary');
      flex: 1;
      min-width: 0;
      @include ellipsis;
    }
  }
}
</style>