Zaklad pro zadavani novych letu
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user