File tree 4 files changed +29
-1
lines changed
test/runtime/samples/if-block-outro-unique-select-block-type
4 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ export default class IfBlock extends Node {
250
250
dynamic ,
251
251
{ name, anchor, hasElse }
252
252
) {
253
- const select_block_type = block . getUniqueName ( `select_block_type` ) ;
253
+ const select_block_type = this . compiler . getUniqueName ( `select_block_type` ) ;
254
254
const current_block_type_index = block . getUniqueName ( `current_block_type_index` ) ;
255
255
const previous_block_index = block . getUniqueName ( `previous_block_index` ) ;
256
256
const if_block_creators = block . getUniqueName ( `if_block_creators` ) ;
Original file line number Diff line number Diff line change
1
+ < div > </ div >
Original file line number Diff line number Diff line change
1
+ export default {
2
+ nestedTransitions : true ,
3
+ html : `
4
+ <div></div>
5
+ <div></div>
6
+ ` ,
7
+ } ;
Original file line number Diff line number Diff line change
1
+ {#if foo}
2
+ < Component />
3
+ {:else}
4
+ < Component />
5
+ {/if}
6
+
7
+ {#if foo}
8
+ < div > </ div >
9
+ {:else}
10
+ < div > </ div >
11
+ {/if}
12
+
13
+ < script >
14
+ export default {
15
+ components : {
16
+ Component : './Component.html' ,
17
+ } ,
18
+ data : ( ) => ( { foo : true } ) ,
19
+ }
20
+ </ script >
You can’t perform that action at this time.
0 commit comments