mirror of https://github.com/sveltejs/svelte
parent
84ca6a0ebc
commit
27f799a2de
@ -1 +0,0 @@
|
|||||||
<div>{#each [] as n (n)} <div animate:flip /> {/each}</div>
|
|
||||||
@ -1,94 +0,0 @@
|
|||||||
{
|
|
||||||
"html": {
|
|
||||||
"start": 0,
|
|
||||||
"end": 59,
|
|
||||||
"type": "Fragment",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"start": 0,
|
|
||||||
"end": 59,
|
|
||||||
"type": "Element",
|
|
||||||
"name": "div",
|
|
||||||
"attributes": [],
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"start": 5,
|
|
||||||
"end": 53,
|
|
||||||
"type": "EachBlock",
|
|
||||||
"expression": {
|
|
||||||
"type": "ArrayExpression",
|
|
||||||
"start": 12,
|
|
||||||
"end": 14,
|
|
||||||
"loc": {
|
|
||||||
"start": {
|
|
||||||
"line": 1,
|
|
||||||
"column": 12
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"line": 1,
|
|
||||||
"column": 14
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"elements": []
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"start": 24,
|
|
||||||
"end": 25,
|
|
||||||
"type": "Text",
|
|
||||||
"raw": " ",
|
|
||||||
"data": " "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"start": 25,
|
|
||||||
"end": 45,
|
|
||||||
"type": "Element",
|
|
||||||
"name": "div",
|
|
||||||
"attributes": [
|
|
||||||
{
|
|
||||||
"start": 30,
|
|
||||||
"end": 42,
|
|
||||||
"type": "Animation",
|
|
||||||
"name": "flip",
|
|
||||||
"modifiers": [],
|
|
||||||
"expression": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"children": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"start": 45,
|
|
||||||
"end": 46,
|
|
||||||
"type": "Text",
|
|
||||||
"raw": " ",
|
|
||||||
"data": " "
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"context": {
|
|
||||||
"type": "Identifier",
|
|
||||||
"name": "n",
|
|
||||||
"start": 18,
|
|
||||||
"end": 19
|
|
||||||
},
|
|
||||||
"key": {
|
|
||||||
"type": "Identifier",
|
|
||||||
"start": 21,
|
|
||||||
"end": 22,
|
|
||||||
"loc": {
|
|
||||||
"start": {
|
|
||||||
"line": 1,
|
|
||||||
"column": 21
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"line": 1,
|
|
||||||
"column": 22
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name": "n"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<script>
|
||||||
|
function flip(){}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{#each [] as n (n)}
|
||||||
|
{@const a = n}
|
||||||
|
<div animate:flip={a} />
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
function flip() {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{#each [] as n (n)} <div animate:flip /> {/each}
|
||||||
|
</div>
|
||||||
Loading…
Reference in new issue