File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public function convert(): string
91
91
$ this ->registerProperties ($ scriptElement );
92
92
}
93
93
94
- if ($ twigBlocks ->count () ){
94
+ if ($ twigBlocks ->length ){
95
95
foreach ($ twigBlocks as $ twigBlock ){
96
96
/** @var DOMText $twigBlock */
97
97
$ this ->rawBlocks [] = trim ($ twigBlock ->textContent );
Original file line number Diff line number Diff line change 1
1
<div >
2
2
{% if variable >= 1 %}
3
- <div >
4
- <h1 >Headline</h1 >
5
- </div >
3
+ <div >
4
+ <h1 >Headline</h1 >
5
+ </div >
6
6
{% elseif variable < 100 and variable >= 1 %}
7
7
<div >
8
8
<h1 >Headline</h1 >
9
9
</div >
10
10
{% endif %}
11
+ {% if showIcon %}
12
+ <span >Oh no.</span >
13
+ {% endif %}
11
14
</div >
Original file line number Diff line number Diff line change 6
6
<div v-else-if =" variable < 100 && variable >= 1" >
7
7
<h1 >Headline</h1 >
8
8
</div >
9
+ <span v-if =" showIcon" >Oh no.</span >
9
10
</div >
10
11
</template >
12
+
13
+ <script >
14
+ export default {
15
+ props: {
16
+ show: {
17
+ type: Boolean ,
18
+ default: false ,
19
+ },
20
+ },
21
+ computed: {
22
+ showIcon () {
23
+ return true ;
24
+ },
25
+ },
26
+ };
27
+ </script >
You can’t perform that action at this time.
0 commit comments