<p> Hello {#if test} <slot></slot> {/if} </p> <script> export default { data () { return { test: true }; } }; </script>