mirror of https://github.com/sveltejs/svelte
parent
d4c671d3be
commit
c63a253e80
@ -0,0 +1 @@
|
|||||||
|
<input {{options}}/>
|
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
html: '<input type="text" value="Hello World"/>',
|
||||||
|
};
|
@ -0,0 +1,17 @@
|
|||||||
|
<Widget options="{{options}}"/>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Widget from './Widget.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data: () => ({
|
||||||
|
options: {
|
||||||
|
type: 'text',
|
||||||
|
value: 'Hello World'
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
components: {
|
||||||
|
Widget
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue