-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Basic.vue
48 lines (45 loc) · 1.14 KB
/
Basic.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
<Page>
<ActionBar>
<NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="$navigateBack" />
<Label text="Basic Pager" />
</ActionBar>
<StackLayout class="page">
<Button text="test modal view" @tap="openModal" />
</StackLayout>
</Page>
</template>
<script lang="ts">
import ModalView from './ModalView.vue';
export default {
data() {
return {
items: [
{ title: 'First', color: '#e67e22' },
{ title: 'Second', color: '#3498db' },
{ title: 'Third', color: '#e74Fc3c' },
{ title: 'Fourth', color: '#9b59b6' }
]
};
},
methods: {
openModal() {
console.log('openModal');
console.log('openModal', ModalView);
this.$showModal(ModalView, {
fullscreen: false
});
}
}
};
</script>
<style lang="scss" scoped>
.page Label {
font-size: 35;
text-align: center;
width: 100%;
vertical-alignment: center;
color: #ffffff;
text-transform: uppercase;
}
</style>