Skip to content

Commit 745c6d3

Browse files
committed
Change test for binding with templatestring
1 parent b2d34d2 commit 745c6d3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{% set foo = foo|default('') %}
22
<div class="block {{ class|default('') }}" style="{{ style|default('') }}">
3-
<div style="{{ foo ? foo : "width: " ~ size ~ "; height: " ~ size }}">
3+
<div style="width: {{ size }}; height: {{ size }};">
44
Foo
55
</div>
6+
<div style="{{ foo ? foo : "width: " ~ size ~ "; height: " ~ size }}">
7+
Bar
8+
</div>
69
</div>

tests/fixtures/vue-bind/binding-with-template-string-4.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<template>
22
<div class="block">
3-
<div :style="foo ? foo : `width: ${size}; height: ${size}`">
3+
<div :style="`width: ${size}; height: ${size}`">
44
Foo
55
</div>
6+
<div :style="foo ? foo : `width: ${size}; height: ${size}`">
7+
Bar
8+
</div>
69
</div>
710
</template>
811

0 commit comments

Comments
 (0)