<template>
<div class="tab-pane current">
  <div class="jiangyi-list">
    <div class="jy-list">
      <template v-for="(item, index) in ppt.imgUrls">
        <div v-bind:key="index" onClick={this.onClickPpt} :data-index="index" :class="[(index === ppt.selectIndex ? 'current' : '')]">
          <img :src="item" alt=""/>
        </div>
      </template>
      <template v-if="!ppt.imgUrls.length">
        <div className="no-data">暂无讲义</div>
      </template>
    </div>
  </div>
</div>
</template>

<script>
export default {
  props: {
    ppt: { type: Object, require: false }
  }
}
</script>
