Zaklad pro zadavani novych letu

This commit is contained in:
Michal Kváček
2023-06-06 07:35:04 +02:00
parent 9d843c62a6
commit 25bf93589e
19 changed files with 413 additions and 197 deletions
+24
View File
@@ -0,0 +1,24 @@
<script setup>
import {onMounted, ref, watch} from "vue";
const props = defineProps({
modelValue: {
type: String,
required: true
}
})
const emit = defineEmits(['update:modelValue']);
let model = ref("");
onMounted(() => {
model.value = props.modelValue;
});
watch(model, (newVal) => {
emit("update:modelValue", newVal);
})
</script>
<template>
<q-input type="datetime-local" v-model="model" v-bind="$attrs"/>
</template>