mirror of https://github.com/sveltejs/svelte
parent
e835679f0f
commit
15f22ca745
@ -1,5 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import One from './One.html';
|
import One from './One.html';
|
||||||
|
|
||||||
|
export let one;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<One ref:one/>
|
<One ref:one/>
|
@ -1 +0,0 @@
|
|||||||
Bar
|
|
@ -1 +0,0 @@
|
|||||||
Foo
|
|
@ -1,16 +0,0 @@
|
|||||||
export default {
|
|
||||||
compileOptions: {
|
|
||||||
dev: true
|
|
||||||
},
|
|
||||||
|
|
||||||
props: {
|
|
||||||
x: true
|
|
||||||
},
|
|
||||||
|
|
||||||
html: '',
|
|
||||||
|
|
||||||
warnings: [
|
|
||||||
`<Main$> expected to find 'Foo' in \`data\`, but found it in \`components\` instead`,
|
|
||||||
`<Main$> expected to find 'Bar' in \`data\`, but found it in \`components\` instead`
|
|
||||||
]
|
|
||||||
};
|
|
@ -1,10 +0,0 @@
|
|||||||
<script>
|
|
||||||
import Foo from './Foo.html';
|
|
||||||
import Bar from './Bar.html';
|
|
||||||
|
|
||||||
export let x;
|
|
||||||
export let Foo;
|
|
||||||
export let Bar;
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<svelte:component this="{x ? Foo : Bar}"/>
|
|
Loading…
Reference in new issue