main/view/vue/main.vue

56 lines
676 B
Vue
Raw Normal View History

2017-11-28 12:37:49 +00:00
<template>
<div id="root">
<header-comp></header-comp>
<span>message: {{ msg }}</span>
</div>
2017-11-28 12:37:49 +00:00
</template>
<script>
import header_vue from './header.vue';
2017-11-28 12:37:49 +00:00
export default {
name: 'root',
data(){ return {
msg: 'Main vue component'
}; },
components: {
'HeaderComp': header_vue
}
2017-11-28 12:37:49 +00:00
}
</script>
<style>
#root {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
2017-11-28 12:37:49 +00:00
}
h1, h2 {
font-weight: normal;
2017-11-28 12:37:49 +00:00
}
ul {
list-style-type: none;
padding: 0;
2017-11-28 12:37:49 +00:00
}
li {
display: inline-block;
margin: 0 10px;
2017-11-28 12:37:49 +00:00
}
a {
color: #42b983;
2017-11-28 12:37:49 +00:00
}
</style>