mirror of https://github.com/sveltejs/svelte
Set 'current' is the block have outros without intro (Fix #5120)
parent
148b6105ed
commit
933ace07cd
@ -0,0 +1,4 @@
|
||||
<slot name="named"/>
|
||||
<slot/>
|
||||
|
||||
<script></script>
|
@ -0,0 +1 @@
|
||||
<script></script>
|
@ -0,0 +1,15 @@
|
||||
export default {
|
||||
html: `
|
||||
<div slot='named'></div>
|
||||
<a href='___init'>___init</a>
|
||||
`,
|
||||
|
||||
test({ assert, component, target }) {
|
||||
component.value = 'update';
|
||||
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<div slot='named'></div>
|
||||
<a href='___update'>___update</a>
|
||||
`);
|
||||
}
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
<script>
|
||||
import Component from './Component.svelte';
|
||||
import Empty from './Empty.svelte';
|
||||
|
||||
export let value = "init"
|
||||
</script>
|
||||
|
||||
<Component>
|
||||
<div slot="named"><Empty/></div>
|
||||
<a href="___{value}">___{value}</a>
|
||||
</Component>
|
Loading…
Reference in new issue