Tip.vue 895 Bytes
<template>
  <div class="hint-tip">
    <div class="tip-title">{{ title }}</div>
    <div class="tip-date" v-if="time">{{ time }}</div>
  </div>
</template>
<script>
export default {
  name: 'tip',
  data() {
    return {
         time: this.date
    }
  },
  props: {
    title: {
      type: String,
      default: ''
    },
    date: {
      type: String,
      default: ''
    }
  },
  methods: {}
}
</script>
<style lang="scss" scoped>
.hint-tip {
  margin: 0 16px;
  height: 40px;
  line-height: 40px;
  background: #f7f7f7;
  box-shadow: 0px 1px 0px 0px #e9e9e9;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  justify-content: space-between;
  .tip-title {
    color: #545454;
    font-size: 16px;
    text-align: left;
    letter-spacing: 0px;
  }
  .tip-date {
    font-size: 12px;
    font-weight: 500;
    color: #545454;
    line-height: 20px;
  }
}
</style>