<template>
  <div class="newsItem flex-h" @click="jump">
    <div class="img">
      <a><img :src="data.ImageUrl" class="centerLabel cover" alt=""></a>
    </div>
    <div class="flex-item flex-v">
      <div class="flex-item">
        <div>
          <span>{{data.Title}}</span>
        </div>
      </div>
      <span>{{toolClass.dateFormat(data.CreateDate)}}</span>
    </div>
  </div>
</template>

<script>

export default {
  name: '',
  props: ['data'],
  data () {
    return {
      
    }
  },
  computed: {
    
  },
  components: {
    
  },
  created () {
    
  },
  methods: {
    jump () {
      this.$emit('jump', this.data)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import "page.scss";
</style>
