mirror of https://github.com/sveltejs/svelte
Merge pull request #2083 from sveltejs/gh-2038
remove internal gubbins when using bind:propspull/2089/head
commit
94dfeec13c
@ -0,0 +1,7 @@
|
||||
<svelte:options bind:props/>
|
||||
|
||||
<script>
|
||||
let props;
|
||||
</script>
|
||||
|
||||
<p>{JSON.stringify(props)}</p>
|
@ -0,0 +1,17 @@
|
||||
export default {
|
||||
props: {
|
||||
x: 1
|
||||
},
|
||||
|
||||
html: `
|
||||
<p>{"x":1}</p>
|
||||
`,
|
||||
|
||||
test({ assert, component, target }) {
|
||||
component.x = 2;
|
||||
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<p>{"x":2}</p>
|
||||
`);
|
||||
}
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import RenderProps from './RenderProps.svelte';
|
||||
|
||||
export let x;
|
||||
</script>
|
||||
|
||||
<RenderProps {x}>
|
||||
<p>some (unused) slotted content, to create an internal prop</p>
|
||||
</RenderProps>
|
Loading…
Reference in new issue