DetailBlock.vue 674 Bytes
<template>
  <div class="detail-block">
    <div class="title flex">{{title}}</div>
    <div class="block-content">
      <slot></slot>
    </div>
  </div>
</template>

<script type='text/ecmascript-6'>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  name: '',
  data () {
    return {
    }
  },
  mounted () {
  },
  methods: {
  }
}
</script>

<style scoped lang='scss'>
.flex {
  display: flex;
  align-items: center;
}
.detail-block {
  background: #ffffff;
  .title {
    height: 50px;
    border-bottom: 1px solid #e5e5e5;
    text-indent: 20px;
    font-weight: 500;
    color: #333333;
    font-size: 16px;
  }
}
</style>