<template>
  <div class="feedbackList" @click="(file) => $emit('seeDetail', file)">
    <div style="margin: 15px 0">
      <div class="feedbackItem-name">
        <span class="feedbackItem-icon">● </span>&nbsp;
        {{ file.title }} &nbsp;（{{ file.addDate | filterCreateTime }}）
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    file: Object,
  },
  computed: {},
  data() {
    return {};
  },
  filters: {
    filterCreateTime(val) {
      return val.substr(0, 10);
    },
  },
  methods: {},
};
</script>
<style lang="less" scoped>
.feedbackList {
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
  .feedbackItem-icon {
    color: #b8b8b8;
    font-size: 20px;
    float: left;
  }
  .feedbackItem-name {
    font-size: 14px;
    font-weight: 400;
    height: 20px;
    font-family: PingFangSC-Regular, PingFang SC;
    color: #0f0f0f;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-align:left;
    text-overflow: ellipsis;
  }
}
</style>
