<!-- 内部直接使用的插槽 -->
<template #chart>
<KeepAlive>
<component
v-bind="$attrs"
:exName="exName"
:tableData="tableData"
:analysisDetail="analysisDetail?.[actComp.key]"
:is="actComp.secondComp"
/>
</KeepAlive>
</template>
<!-- 外层插入插槽 -->
<template v-for="(_, slotKey, slotIndex) in $slots" :key="slotIndex" #[slotKey]="slotData">
{{ slotKey }}
<KeepAlive v-if="slotKey === 'chart'">
<component
v-bind="$attrs"
:exName="exName"
:tableData="tableData"
:analysisDetail="analysisDetail?.[actComp.key]"
:is="actComp.secondComp"
/>
</KeepAlive>
<slot :name="slotKey" v-bind="slotData"></slot>
</template>
写入插槽
<div v-if="bItem.slot">
<slot :name="bItem.slot" v-bind="{ data: bItem }"></slot>
</div>
插入插槽 使用 eventBtnData 中写入时的 data
<template #reviewsExcel="eventBtnData">
<ReviewsDownload :data="{ asinId, ...eventBtnData.data }" />
</template>