<template>
  <div class="specialty-info">
    <el-form :model="specialty" class="demo-form-inline" size="small">
      <el-form-item :label="$t('resumeInfo:label:Speciality')">
        <span v-if="isEnglish">{{ specialty.Speciality }}</span>
        <span v-else>{{ specialty.SpecialityCN }}</span>
      </el-form-item>

      <el-form-item :label="$t('resumeInfo:label:Subspeciality')">
        <span v-if="isEnglish">{{ specialty.Subspeciality }}</span>
        <span v-else>{{ specialty.SubspecialityCNList }}</span>
      </el-form-item>

      <el-form-item :label="$t('resumeInfo:label:ReadingType')">
        <span v-if="isEnglish">{{ specialty.ReadingType }}</span>
        <span v-else>{{ specialty.ReadingTypeCNList }}</span>
      </el-form-item>

    </el-form>
  </div>
</template>
<script>

export default {
  props: {
    specialty: {
      type: Object,
      default() {
        return {}
      }
    },
    isEnglish: {
      type: Boolean
    }
  }
}
</script>

<style lang="scss">
.specialty-info{
  padding:5px 15px;
  font-size:13px;
  .el-form-item--mini.el-form-item{
    margin-bottom: 0px;
  }
  .el-form-item--small.el-form-item{
    margin-bottom: 0px;
  }
  .el-form-item__content{
    font-size: 13px;
  }
  .el-form-item__label{
    font-size: 13px;
    color: #303133;
    font-weight: bold;
  }
}
</style>
