一般在swiper 轮播子组件上使用。
父组件app
test-slot>
<h3 slot="aaa">aaa插槽的使用</h3>//具名插槽
<h3 slot="bbb">bbb插槽的使用</h3>
</test-slot>
子组件testSlot
<div>
<h2>slot插槽的使用 具名插槽</h2>
<slot></slot>//插槽的使用
</div>
一般在swiper 轮播子组件上使用。
父组件app
test-slot>
<h3 slot="aaa">aaa插槽的使用</h3>//具名插槽
<h3 slot="bbb">bbb插槽的使用</h3>
</test-slot>
子组件testSlot
<div>
<h2>slot插槽的使用 具名插槽</h2>
<slot></slot>//插槽的使用
</div>