WIP
This commit is contained in:
56
src/ui/Domo/src/App.vue
Normal file
56
src/ui/Domo/src/App.vue
Normal 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>
|
||||
Reference in New Issue
Block a user