mirror of https://github.com/sveltejs/svelte
Skip default slot if it contains only spaces (#4546)
parent
148b6105ed
commit
1cbbcfe021
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<slot name='slotA'/>
|
||||
<slot name='slotB'/>
|
||||
<slot>default value</slot>
|
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
html: `
|
||||
<div slot='slotA'>A</div>
|
||||
<div slot='slotB'>B</div>
|
||||
default value
|
||||
`
|
||||
};
|
@ -0,0 +1,12 @@
|
||||
<script>
|
||||
import Component from './Component.svelte';
|
||||
</script>
|
||||
|
||||
<Component>
|
||||
|
||||
|
||||
<div slot='slotA'>A</div>
|
||||
<div slot='slotB'>B</div>
|
||||
|
||||
|
||||
</Component>
|
Loading…
Reference in new issue