First test

This commit is contained in:
2023-01-14 15:37:59 +01:00
parent 6ee5c3d6ef
commit b68fdb31a7
14 changed files with 548 additions and 410 deletions

View File

@@ -1,11 +1,12 @@
<script setup>
import { onMounted, ref } from 'vue';
defineProps(['modelValue']);
const props = defineProps(['modelValue']);
defineEmits(['update:modelValue']);
const input = ref(null);
const value = ref(props.modelValue);
onMounted(() => {
if (input.value.hasAttribute('autofocus')) {
@@ -18,7 +19,7 @@ defineExpose({ focus: () => input.value.focus() });
<template>
<input
class="border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm"
class="h-10 border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm"
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)"
ref="input"