Skip to content

Commit

Permalink
fix: switch bug example to v-show
Browse files Browse the repository at this point in the history
  • Loading branch information
keerl committed Jun 20, 2022
1 parent 54f6e9a commit cfede99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo-snippets/vue/RenderIssue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<StackLayout marginTop="200">
<StackLayout marginBottom="50">
<Label :text="item.field1" />
<StackLayout v-if="item.field1" backgroundColor="red" height="10" width="10" />
<StackLayout v-show="item.field1" backgroundColor="red" height="10" width="10" />
</StackLayout>
<StackLayout marginBottom="50">
<Label :text="item.field2" />
<StackLayout v-if="item.field2" backgroundColor="green" height="10" width="10" />
<StackLayout v-show="item.field2" backgroundColor="green" height="10" width="10" />
</StackLayout>
<StackLayout marginBottom="50">
<Label :text="item.field3" />
<StackLayout v-if="item.field3" backgroundColor="blue" height="10" width="10"/>
<StackLayout v-show="item.field3" backgroundColor="blue" height="10" width="10"/>
</StackLayout>
</StackLayout>
</v-template>
Expand Down

0 comments on commit cfede99

Please sign in to comment.