<!--
 * @Author: 曹捷
 * @Date: 2021-05-17 09:45:57
 * @LastEditors: 曹捷
 * @LastEditTime: 2021-09-03 17:00:52
 * @Description: 详情模板
-->
<template>
  <component :is="type">
    <template #search>
      <slot name="search"></slot>
    </template>
    <template #btn>
      <slot name="btn"></slot>
    </template>
    <slot></slot>
  </component>
</template>

<script>
import headDetails from './details/head-details.vue'
export default {
  components: { headDetails },
  props: {
    type: {
      type: String,
      default: 'headDetails'
    },
  },
}
</script>

<style>
</style>