-
Notifications
You must be signed in to change notification settings - Fork 591
/
Copy pathApp.vue
43 lines (39 loc) · 813 Bytes
/
App.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
<template>
<main>
<div>The counter amount is {{ counter }}</div>
<app-getter></app-getter>
<app-mutation></app-mutation>
<app-action></app-action>
</main>
</template>
<script>
import AppGetter from "@/components/AppGetter.vue";
import AppMutation from "@/components/AppMutation.vue";
import AppAction from "@/components/AppAction.vue";
export default {
components: {
AppGetter,
AppMutation,
AppAction,
},
computed: {
counter() {
return this.$store.state.counter;
},
},
};
</script>
<style lang="scss">
main {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
font-size: 18px;
}
div {
margin: 20px 0;
}
</style>