|
|
|
@ -5,10 +5,13 @@ export default class Block {
|
|
|
|
|
constructor ( options ) {
|
|
|
|
|
this.generator = options.generator;
|
|
|
|
|
this.name = options.name;
|
|
|
|
|
this.key = options.key;
|
|
|
|
|
this.expression = options.expression;
|
|
|
|
|
this.context = options.context;
|
|
|
|
|
|
|
|
|
|
// for keyed each blocks
|
|
|
|
|
this.key = options.key;
|
|
|
|
|
this.first = null;
|
|
|
|
|
|
|
|
|
|
this.contexts = options.contexts;
|
|
|
|
|
this.indexes = options.indexes;
|
|
|
|
|
this.contextDependencies = options.contextDependencies;
|
|
|
|
@ -155,6 +158,10 @@ export default class Block {
|
|
|
|
|
properties.addBlock( `key: ${localKey},` );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( this.first ) {
|
|
|
|
|
properties.addBlock( `first: ${this.first},` );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( this.builders.mount.isEmpty() ) {
|
|
|
|
|
properties.addBlock( `mount: ${this.generator.helper( 'noop' )},` );
|
|
|
|
|
} else {
|
|
|
|
|