lesson 112: only display the header is there is content
This commit is contained in:
parent
271c06abce
commit
cf7b57dfb2
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<header>
|
||||
<header v-if="$slots.header">
|
||||
<slot name="header"></slot>
|
||||
</header>
|
||||
<slot></slot>
|
||||
|
|
Reference in New Issue