<template>
  <div class="teacher">
    <div class="teacher-item" v-for="item in data" :key="item.id">
      <img :src="item.lecturer_avatar" class="teacher-item-pic" />
      <div class="teacher-item-content">
        <p class="t1">{{ item.lecturer_name }}</p>
        <p class="t2">{{ item.lecturer_education }}</p>
        <p class="t2">{{ item.lecturer_office }}</p>
        <p class="t2">{{ item.lecturer_title }}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: { type: Array, default: () => [] }
  }
}
</script>

<style lang="scss" scoped>
.teacher-item {
  display: flex;
  margin-bottom: 10px;
}
.teacher-item-pic {
  width: 90px;
  height: 110px;
  object-fit: cover;
  margin-right: 10px;
}
.teacher-item-content {
  flex: 1;
  .t1 {
    font-weight: bold;
  }
  .t2 {
    font-size: 13px;
    margin-top: 5px;
    color: #707070;
  }
}
</style>
