|
|
@ -169,11 +169,9 @@ export default class Block {
|
|
|
|
|
|
|
|
|
|
|
|
toString() {
|
|
|
|
toString() {
|
|
|
|
const { dev } = this.compiler.options;
|
|
|
|
const { dev } = this.compiler.options;
|
|
|
|
const properties = new CodeBuilder();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.hasIntroMethod || this.hasOutroMethod) {
|
|
|
|
if (this.hasIntroMethod || this.hasOutroMethod) {
|
|
|
|
this.addVariable('#current');
|
|
|
|
this.addVariable('#current');
|
|
|
|
properties.addBlock(`cr(){ return #current; },`);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.builders.mount.isEmpty()) {
|
|
|
|
if (!this.builders.mount.isEmpty()) {
|
|
|
|
this.builders.mount.addLine(`#current = true;`);
|
|
|
|
this.builders.mount.addLine(`#current = true;`);
|
|
|
@ -188,6 +186,8 @@ export default class Block {
|
|
|
|
this.builders.mount.addLine(`${this.autofocus}.focus();`);
|
|
|
|
this.builders.mount.addLine(`${this.autofocus}.focus();`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const properties = new CodeBuilder();
|
|
|
|
|
|
|
|
|
|
|
|
let localKey;
|
|
|
|
let localKey;
|
|
|
|
if (this.key) {
|
|
|
|
if (this.key) {
|
|
|
|
localKey = this.getUniqueName('key');
|
|
|
|
localKey = this.getUniqueName('key');
|
|
|
|