This commit is contained in:
jbnadal
2016-05-04 18:59:28 +02:00
parent ee4025bc70
commit 2a349466e6

56
src/ui/Domo/src/App.vue Normal file
View File

@@ -0,0 +1,56 @@
<template>
<div id="app">
<p>
<!-- use v-link directive for navigation. -->
<a v-link="{ path: '/foo' }">Go to Foo</a>
<a v-link="{ path: '/bar' }">Go to Bar</a>
</p>
<!-- use router-view element as route outlet -->
<router-view class="test" transition="test" transition-mode="out-in"></router-view>
</div>
</template>
<script>
import Hello from './components/Hello'
export default {
components: {
Hello
}
}
</script>
<style>
html {
height: 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
#app {
margin-top: -100px;
max-width: 600px;
font-family: Helvetica, sans-serif;
text-align: center;
}
.logo {
width: 100px;
height: 100px
}
.test {
transition: all .5s ease;
}
.test-enter, .test-leave {
opacity: 0;
transform: translate3d(10px, 0, 0);
}
</style>