Skip to content

Commit 41ef7d9

Browse files
committed
Fix for v-bind
1 parent aa94288 commit 41ef7d9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{% set a = a|default('foo') %}
2-
{% set b = b|default(42) %}
1+
{% set foo = foo|default('foo') %}
2+
{% set bar = bar|default(42) %}
33
<div class="{{ class|default('') }}" style="{{ style|default('') }}">
4-
{% include "/templates/ChildComponent.twig" with { 'bar': "baz", 'slot_default': "", 'a': a, 'b': b, 'class': "", 'style': "" } %}
4+
{% include "/templates/ChildComponent.twig" with { 'slot_default': "", 'foo': foo, 'bar': bar, 'class': "", 'style': "" } %}
55
</div>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<ChildComponent v-bind="$props" bar="baz" />
3+
<ChildComponent v-bind="$props" />
44
</div>
55
</template>
66

@@ -9,7 +9,7 @@
99
1010
@Component
1111
export default class ComponentWithVBind extends Vue {
12-
@Prop({ type: String, default: 'foo' }) a: string;
13-
@Prop({ type: Number, default: 42 }) b: number;
12+
@Prop({ type: String, default: 'foo' }) foo: string;
13+
@Prop({ type: Number, default: 42 }) bar: number;
1414
}
1515
</script>

0 commit comments

Comments
 (0)