<template>
<div class="gy-table">
  <table  cellspacing="0" cellpadding="0" border="0" style="width:100%;font-size:14px">
      <thead>
        <td>排名</td>
        <td>笔记名称</td>
        <td>更新时间</td>
      </thead>
      <tbody>

      <tr v-for="(note,i) in list" :key="note.id">
        <td>{{i+1}}</td>
        <td>{{note.title}}</td>
        <td>{{new Date(note.update_time).format("yyyy-MM-dd")}}</td>
        <!-- <td>{{note.view_count}}</td> <td>{{note.version}}</td> -->
      </tr>
      </tbody>
    </table>
</div>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="scss" scoped>
.gy-table td{
  padding: 5px;
}
</style>
