Cleaning in progress

This commit is contained in:
euvl
2016-11-14 12:40:24 +00:00
parent 98a1f426ed
commit ee50379de6
21 changed files with 18 additions and 565 deletions

41
examples/App.vue Normal file
View File

@@ -0,0 +1,41 @@
<template>
<div id="app">
<img src="./assets/logo.png">
<button @click="showModal">Show modal</button>
<transition name="fade">
<modal name="hello">Hello!</modal>
</transition>
</div>
</template>
<script>
import Hello from './components/Hello';
export default {
name: 'app',
methods: {
showModal() {
this.$modal.toggle('hello', false);
},
},
};
</script>
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
.fade-enter-active, .fade-leave-active {
transition: all .3s;
}
.fade-enter, .fade-leave-active {
opacity: 0;
}
</style>