🎉 Initial Auth
This commit is contained in:
25
components/InputForm.vue
Normal file
25
components/InputForm.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<form @submit.prevent="formPost">
|
||||
<input type="text" autofocus ref="inputMessage" v-model="message" />
|
||||
<input type="submit" value="DUNK!" />
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { store } from "../functions/store";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
message: null
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
formPost() {
|
||||
store.writeBall(this.message);
|
||||
this.message = null;
|
||||
this.$refs.inputMessage.focus();
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user