Use Input component for all inputs except file-input

This commit is contained in:
2022-03-02 19:53:12 +00:00
committed by Gitea
parent 42baafd273
commit 29cfeb6fa6
8 changed files with 20 additions and 13 deletions

View File

@ -2,6 +2,7 @@
import { onMounted, ref } from "vue";
import { useRouter } from "vue-router";
import { useSessionStore } from "../stores/session";
import Input from "../components/Input.vue";
const error = ref("");
const login = ref({ email: "", password: "", name: "" });
@ -28,13 +29,13 @@ function formSubmit(e: MouseEvent) {
<template>
<div>
<input type="text" v-model="login.name"
<Input type="text" v-model="login.name"
placeholder="Name"
class="border-2 border-black rounded-lg block px-2 my-2 w-48" />
<input type="text" v-model="login.email"
<Input type="text" v-model="login.email"
placeholder="Email"
class="border-2 border-black rounded-lg block px-2 my-2 w-48" />
<input type="password" v-model="login.password"
<Input type="password" v-model="login.password"
placeholder="Password"
class="border-2 border-black rounded-lg block px-2 my-2 w-48" />
</div>