<template>
  <div class="my-component">
    <slot name="header"></slot>
    <slot name="extra"></slot>
  </div>
</template>

<script>
export default {
  name: 'MyComponent',
};
</script>

<style scoped>
.my-component {
  /* 添加样式 */
}
</style>