Skip to content

Commit 54f6e9a

Browse files
committed
chore: add bug example
1 parent f9468d6 commit 54f6e9a

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

demo-snippets/vue/RenderIssue.vue

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
<template>
3+
<Page>
4+
<ActionBar>
5+
<NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="$navigateBack" />
6+
<Label text="Basic Pager" />
7+
</ActionBar>
8+
9+
<StackLayout class="page">
10+
<Pager for="item in items" height="100%">
11+
<v-template>
12+
<StackLayout marginTop="200">
13+
<StackLayout marginBottom="50">
14+
<Label :text="item.field1" />
15+
<StackLayout v-if="item.field1" backgroundColor="red" height="10" width="10" />
16+
</StackLayout>
17+
<StackLayout marginBottom="50">
18+
<Label :text="item.field2" />
19+
<StackLayout v-if="item.field2" backgroundColor="green" height="10" width="10" />
20+
</StackLayout>
21+
<StackLayout marginBottom="50">
22+
<Label :text="item.field3" />
23+
<StackLayout v-if="item.field3" backgroundColor="blue" height="10" width="10"/>
24+
</StackLayout>
25+
</StackLayout>
26+
</v-template>
27+
</Pager>
28+
</StackLayout>
29+
</Page>
30+
</template>
31+
32+
<script>
33+
export default {
34+
data() {
35+
return {
36+
items: [
37+
{ field1: true, field2: true, field3: true},
38+
{ field1: true, field2: true, field3: false},
39+
{ field1: true, field2: false, field3: true},
40+
{ field1: false, field2: true, field3: true},
41+
{ field1: false, field2: true, field3: true},
42+
{ field1: true, field2: true, field3: false},
43+
]
44+
}
45+
}
46+
};
47+
</script>
48+
49+
<style lang="scss" scoped>
50+
51+
</style>

demo-snippets/vue/install.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Pager from '@nativescript-community/ui-pager/vue';
44
import StaticPager from './StaticPager.vue';
55
import BasicPager from './BasicPager.vue';
66
import Indicator from './Indicator.vue';
7+
import RenderIssue from './RenderIssue.vue';
78

89
export function installPlugin() {
910
Vue.use(Pager);
@@ -12,5 +13,6 @@ export function installPlugin() {
1213
export const demos = [
1314
{ name: 'Static Pager', path: 'static', component: StaticPager },
1415
{ name: 'Basic Pager', path: 'basic', component: BasicPager },
15-
{ name: 'Indicator', path: 'indicator', component: Indicator }
16+
{ name: 'Indicator', path: 'indicator', component: Indicator },
17+
{ name: 'Render Issue', path: 'indicator', component: RenderIssue }
1618
];

0 commit comments

Comments
 (0)