<template>
    <div class="stencilledCon" @click.stop="$parent.addChoice(data.id)">
      <div class="top">
        <div class="tit" v-text="data.name"></div>
        <div class="btn">
          <img src="../../../assets/images/classObserve/Selected.png" alt="" v-if="isChoice"/>
        </div>
      </div>
      <div class="con" v-text="data.detail">
        
      </div>
      <div class="bom">
        <div>{{data.count}}人已使用</div>
      </div>
    </div>
  </template>
  
  <script>
  export default {
		props:{
			data:{
				type:Object,
				default:()=>{}
			},
			isChoice:{
				type:Boolean,
				default:false
			}
		},
    data() {
      return {}
    },
    methods: {
      
    }
  }
  </script>
  
  <style lang="scss" scoped>
  .stencilledCon {
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.08);
    box-shadow: 0px 16px 24px 2px rgba(0, 0, 0, 0.04);
    box-shadow: 0px 6px 30px 5px rgba(0, 0, 0, 0.05);
  }
  .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    .tit {
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      img {
        margin-right: 5px;
      }
    }
    .btn {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .btnTxt {
        background-color: rgba(240, 242, 245, 1);
        padding: 7px 15px;
        border-radius: 5px;
        margin-left: 7px;
      }
      img {
        width: 20px;
        height: 20px;
      }
    }
  }
  .con {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    padding: 10px 0;
  }
  .bom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
  }
  </style>
  