mobitter/src/App.vue

44 lines
694 B
Vue

<template>
<div>
<div id="preview">{{ text }}</div>
<input v-model="input">
</div>
</template>
<script>
export default {
name: 'Mobitter-FE',
data () {
return {
input: null
}
},
computed: {
text () {
let text = this.input
// Do something with text.
return text
}
},
}
</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;
}
#preview {
border: 2px solid black;
width: 1200px;
height: 100px;
margin: 20px auto;
line-height: 100px;
font-size: 24px;
}
</style>