letterItem.vue 1.04 KB
<template>
  <section class="agreement_item">
    <main v-if="navItem.children" class="item_content">
      <p v-for="(item, index) in navItem.children" :key="index">
        <span class="title">{{item.title}}</span>
        <span class="update_time">{{item.time}}</span>
      </p>
    </main>
  </section>
</template>
<script>
export default {
  data() {
    return {

    }
  },
  props: {
    navItem: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  updated() {
    console.log(this.navItem)
  }
}
</script>
<style lang="less" scoped>
.agreement_item {
  .item_title {
    font-size: 13px;
    padding: 10px 0;
    color: #999999;
  }
  .item_content {
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0px 0px 6px 0px rgba(2, 15, 41, 0.06);
    p {
      display: flex;
      justify-content: space-between;
      line-height: 30px;
    }
    .title {
      font-size: 14px;
      color: #333333;
    }
    .update_time {
      font-size: 13px;
      color: #666666;
    }
  }
}
</style>