用法:父子组件中 子组件写入<slot></slot>,就能够在父组件内容写入内容了。 具名插槽<slot name="header"></slot> .在父组件中也要写上对应的name,才能够显示。注:<slot></slot>通用插槽能够适配全部web
<slot></slot>
<slot name="header"></slot>