Skip to content

Commit 663fc28

Browse files
committed
Change for style binding
1 parent abc80cd commit 663fc28

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/fixtures/vue-bind/bindings-style.twig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<div class="{{ class|default('') }}" style="{{ style|default('') }}">
2+
<span style="color: #ff0000">
3+
test
4+
</span>
5+
<span style="{{ 'color: #ff0000' }};">
6+
test
7+
</span>
28
<span style="{{ 'color:' ~ '#ff0000' }};">
39
test
410
</span>
@@ -11,4 +17,7 @@
1117
<span style="{{ isSomething ? 'display: block;' : 'display: inline;' }};">
1218
test
1319
</span>
20+
<span style="{{ 'background-color:' ~ color }};">
21+
test
22+
</span>
1423
</div>

tests/fixtures/vue-bind/bindings-style.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<template>
22
<div>
3+
<span style="color: #ff0000">
4+
test
5+
</span>
6+
<span :style="'color: #ff0000'">
7+
test
8+
</span>
39
<span :style="{color: '#ff0000'}">
410
test
511
</span>
@@ -12,5 +18,8 @@
1218
<span :style="isSomething ? 'display: block;' : 'display: inline;'">
1319
test
1420
</span>
21+
<span :style="'background-color:' + color">
22+
test
23+
</span>
1524
</div>
1625
</template>

0 commit comments

Comments
 (0)