<template>
  <div>
    <slot name="header"></slot>
    <h1>作用域插槽</h1>
    <slot :obj1="obj" name="x">{{ obj.age }}</slot>
    <h1>2222222</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      obj: {
        name: "图图",
        age: 3,
      },
    };
  },
};
</script>

<style>
</style>