<template>
  <div class="detail-info">
    <el-row>
      <el-col :span="6">
        <div class="detail-left">
          <img :src="materianImg" class="info-img">
        </div>
      </el-col>
      <el-col :span="18">
        <material-text :datalist="datalist" :MediaSummary="MediaSummary"></material-text>
      </el-col>
    </el-row>
  </div>
</template>
<script>
import MaterialText from './MaterialText'
export default {
  data () {
    return {
      materianImg: ''
    }
  },
  props: ['datalist', 'MediaSummary'],
  mounted () {
    this.datalist.forEach(item => {
      this.materianImg = item.thumb_url
    })
  },
  components: {
    MaterialText
  }
}
</script>
<style lang="stylus" scoped>
.detail-info
  .detail-left
    margin-right 10px
    .info-img
      width 100%
      height 100%
</style>
