<template>
  <div id="detail-layout">
    <el-row class="title_space">
      <el-col :span="24">
        <slot name="title"> </slot>
        <!-- :xxx=>object name;此处相当于把我们要传过去的参数封了一层: {data:test} -->
      </el-col>
    </el-row>
    <div class="bord">
      <slot name="main"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'detail-layout',
  props: {},
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.title_space {
  margin: 0.9rem 0;
  font-size: 1rem;
}
.bord {
  margin: 1rem 0;
  background: #f4f5f9;
  // border: 1px solid #e7e8ec;
}
</style>
