<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> 
 |