mirror of https://github.com/sveltejs/svelte
parent
0f0f947865
commit
73e45ab483
@ -1 +1,5 @@
|
|||||||
<iframe src='{src}'></iframe>
|
<script>
|
||||||
|
export let src;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<iframe src={src}></iframe>
|
@ -1,3 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
let foo;
|
||||||
|
</script>
|
||||||
|
|
||||||
<div tabindex='-1'/>
|
<div tabindex='-1'/>
|
||||||
<div tabindex='0'/>
|
<div tabindex='0'/>
|
||||||
<div tabindex='1'/>
|
<div tabindex='1'/>
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
let things;
|
||||||
|
</script>
|
||||||
|
|
||||||
{#each things as thing (thing)}
|
{#each things as thing (thing)}
|
||||||
<div animate:foo></div>
|
<div animate:foo></div>
|
||||||
{/each}
|
{/each}
|
@ -1,15 +1,15 @@
|
|||||||
[{
|
[{
|
||||||
"code": "invalid-binding",
|
"code": "invalid-binding",
|
||||||
"message": "'offsetWidth' is not a valid binding on SVG elements",
|
"message": "'offsetWidth' is not a valid binding on SVG elements",
|
||||||
"pos": 13,
|
"pos": 51,
|
||||||
"start": {
|
"start": {
|
||||||
"line": 2,
|
"line": 6,
|
||||||
"column": 7,
|
"column": 7,
|
||||||
"character": 13
|
"character": 51
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"line": 2,
|
"line": 6,
|
||||||
"column": 23,
|
"column": 23,
|
||||||
"character": 29
|
"character": 67
|
||||||
}
|
}
|
||||||
}]
|
}]
|
Before Width: | Height: | Size: 53 B After Width: | Height: | Size: 91 B |
@ -1,15 +1,15 @@
|
|||||||
[{
|
[{
|
||||||
"code": "invalid-binding",
|
"code": "invalid-binding",
|
||||||
"message": "'offsetWidth' is not a valid binding on <svg>. Use 'clientWidth' instead",
|
"message": "'offsetWidth' is not a valid binding on <svg>. Use 'clientWidth' instead",
|
||||||
"pos": 5,
|
"pos": 43,
|
||||||
"start": {
|
"start": {
|
||||||
"line": 1,
|
"line": 5,
|
||||||
"column": 5,
|
"column": 5,
|
||||||
"character": 5
|
"character": 43
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"line": 1,
|
"line": 5,
|
||||||
"column": 21,
|
"column": 21,
|
||||||
"character": 21
|
"character": 59
|
||||||
}
|
}
|
||||||
}]
|
}]
|
Before Width: | Height: | Size: 28 B After Width: | Height: | Size: 66 B |
@ -1,15 +1,15 @@
|
|||||||
[{
|
[{
|
||||||
"code": "invalid-binding",
|
"code": "invalid-binding",
|
||||||
"message": "'offsetWidth' is not a valid binding on void elements like <img>. Use a wrapper element instead",
|
"message": "'offsetWidth' is not a valid binding on void elements like <img>. Use a wrapper element instead",
|
||||||
"pos": 22,
|
"pos": 60,
|
||||||
"start": {
|
"start": {
|
||||||
"line": 1,
|
"line": 5,
|
||||||
"column": 22,
|
"column": 22,
|
||||||
"character": 22
|
"character": 60
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"line": 1,
|
"line": 5,
|
||||||
"column": 38,
|
"column": 38,
|
||||||
"character": 38
|
"character": 76
|
||||||
}
|
}
|
||||||
}]
|
}]
|
@ -1 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let offsetWidth;
|
||||||
|
</script>
|
||||||
|
|
||||||
<img src='potato.jpg' bind:offsetWidth>
|
<img src='potato.jpg' bind:offsetWidth>
|
@ -1 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let foo;
|
||||||
|
</script>
|
||||||
|
|
||||||
<input bind:checked={foo}>
|
<input bind:checked={foo}>
|
@ -1 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let foo;
|
||||||
|
</script>
|
||||||
|
|
||||||
<input bind:value={foo} type>
|
<input bind:value={foo} type>
|
@ -1 +1,6 @@
|
|||||||
<input bind:value={foo} type='{inputType}'>
|
<script>
|
||||||
|
let foo;
|
||||||
|
let inputType;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<input bind:value={foo} type={inputType}>
|
@ -1,15 +1,15 @@
|
|||||||
[{
|
[{
|
||||||
"code": "invalid-binding",
|
"code": "invalid-binding",
|
||||||
"message": "'value' is not a valid binding on <div> elements",
|
"message": "'value' is not a valid binding on <div> elements",
|
||||||
"pos": 5,
|
"pos": 37,
|
||||||
"start": {
|
"start": {
|
||||||
"line": 1,
|
"line": 5,
|
||||||
"column": 5,
|
"column": 5,
|
||||||
"character": 5
|
"character": 37
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"line": 1,
|
"line": 5,
|
||||||
"column": 15,
|
"column": 15,
|
||||||
"character": 15
|
"character": 47
|
||||||
}
|
}
|
||||||
}]
|
}]
|
@ -1 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let value;
|
||||||
|
</script>
|
||||||
|
|
||||||
<div bind:value></div>
|
<div bind:value></div>
|
@ -1,15 +1,15 @@
|
|||||||
[{
|
[{
|
||||||
"code": "invalid-binding",
|
"code": "invalid-binding",
|
||||||
"message": "'whatever' is not a valid binding",
|
"message": "'whatever' is not a valid binding",
|
||||||
"pos": 5,
|
"pos": 40,
|
||||||
"start": {
|
"start": {
|
||||||
"line": 1,
|
"line": 5,
|
||||||
"column": 5,
|
"column": 5,
|
||||||
"character": 5
|
"character": 40
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"line": 1,
|
"line": 5,
|
||||||
"column": 18,
|
"column": 18,
|
||||||
"character": 18
|
"character": 53
|
||||||
}
|
}
|
||||||
}]
|
}]
|
@ -1 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let whatever;
|
||||||
|
</script>
|
||||||
|
|
||||||
<div bind:whatever></div>
|
<div bind:whatever></div>
|
@ -1,3 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
let x;
|
||||||
|
</script>
|
||||||
|
|
||||||
{#if x}
|
{#if x}
|
||||||
|
|
||||||
{/if}
|
{/if}
|
@ -1,3 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
let value;
|
||||||
|
</script>
|
||||||
|
|
||||||
<select bind:value multiple>
|
<select bind:value multiple>
|
||||||
<option>1</option>
|
<option>1</option>
|
||||||
</select>
|
</select>
|
@ -1 +1,8 @@
|
|||||||
<rect x='{x}' y='{y}' width='{width}' height='{height}'/>
|
<script>
|
||||||
|
export let x;
|
||||||
|
export let y;
|
||||||
|
export let width;
|
||||||
|
export let height;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<rect x={x} y={y} width={width} height={height}/>
|
@ -1 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
let online;
|
||||||
|
</script>
|
||||||
|
|
||||||
<svelte:window bind:online/>
|
<svelte:window bind:online/>
|
Loading…
Reference in new issue