mirror of https://github.com/sveltejs/svelte
Merge pull request #2416 from sveltejs/gh-2359
propagate scope changes across chained slotspull/2418/head
commit
5fc2fab896
@ -0,0 +1 @@
|
||||
<slot/>
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Inner from './Inner.svelte';
|
||||
</script>
|
||||
|
||||
<Inner>
|
||||
<slot/>
|
||||
</Inner>
|
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
html: 'one',
|
||||
|
||||
test({ assert, component, target }) {
|
||||
component.text = 'two';
|
||||
assert.htmlEqual(target.innerHTML, `two`);
|
||||
}
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import Outer from './Outer.svelte';
|
||||
|
||||
export let text = 'one';
|
||||
</script>
|
||||
|
||||
<Outer>
|
||||
{text}
|
||||
</Outer>
|
Loading…
Reference in new issue