Skip to content

Commit cfede99

Browse files
committed
fix: switch bug example to v-show
1 parent 54f6e9a commit cfede99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo-snippets/vue/RenderIssue.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
<StackLayout marginTop="200">
1313
<StackLayout marginBottom="50">
1414
<Label :text="item.field1" />
15-
<StackLayout v-if="item.field1" backgroundColor="red" height="10" width="10" />
15+
<StackLayout v-show="item.field1" backgroundColor="red" height="10" width="10" />
1616
</StackLayout>
1717
<StackLayout marginBottom="50">
1818
<Label :text="item.field2" />
19-
<StackLayout v-if="item.field2" backgroundColor="green" height="10" width="10" />
19+
<StackLayout v-show="item.field2" backgroundColor="green" height="10" width="10" />
2020
</StackLayout>
2121
<StackLayout marginBottom="50">
2222
<Label :text="item.field3" />
23-
<StackLayout v-if="item.field3" backgroundColor="blue" height="10" width="10"/>
23+
<StackLayout v-show="item.field3" backgroundColor="blue" height="10" width="10"/>
2424
</StackLayout>
2525
</StackLayout>
2626
</v-template>

0 commit comments

Comments
 (0)