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 >
0 commit comments