pull/3539/head
Richard Harris 6 years ago
parent 16b4897abf
commit 91459bd755

@ -87,7 +87,7 @@ export default function(node: Element, renderer: Renderer, options: RenderOption
const snippet = expression ? expression.node : x`#ctx.${name}`; const snippet = expression ? expression.node : x`#ctx.${name}`;
return x`${snippet} ? "${name}" : ""`; return x`${snippet} ? "${name}" : ""`;
}) })
.reduce((lhs, rhs) => x`${lhs} + ${rhs}`); .reduce((lhs, rhs) => x`${lhs} + ' ' + ${rhs}`);
let add_class_attribute = class_expression ? true : false; let add_class_attribute = class_expression ? true : false;

@ -45,7 +45,7 @@ export default function(node: InlineComponent, renderer: Renderer, options: Rend
return x`{ ${attribute.name}: ${get_prop_value(attribute)} }`; return x`{ ${attribute.name}: ${get_prop_value(attribute)} }`;
} }
}) })
.concat(binding_props.map(p => `{ ${p} }`)) .concat(binding_props.map(p => x`{ ${p} }`))
})`; })`;
} else { } else {
props = x`{ props = x`{

Loading…
Cancel
Save