|
|
|
@ -6,10 +6,6 @@ defineProps({ |
|
|
|
type: String, |
|
|
|
type: String, |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
modelValue: { |
|
|
|
|
|
|
|
type: [null, String, Date, Array], |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
id: { |
|
|
|
id: { |
|
|
|
type: String, |
|
|
|
type: String, |
|
|
|
require: true, |
|
|
|
require: true, |
|
|
|
@ -38,7 +34,10 @@ defineProps({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
defineEmits(["update:modelValue"]) |
|
|
|
const model = defineModel({ |
|
|
|
|
|
|
|
type: [null, String, Date, Array], |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
@ -46,13 +45,12 @@ defineEmits(["update:modelValue"]) |
|
|
|
<div class="p-float-label"> |
|
|
|
<div class="p-float-label"> |
|
|
|
<Calendar |
|
|
|
<Calendar |
|
|
|
:id="id" |
|
|
|
:id="id" |
|
|
|
|
|
|
|
v-model="model" |
|
|
|
:class="{ 'p-invalid': isInvalid }" |
|
|
|
:class="{ 'p-invalid': isInvalid }" |
|
|
|
:manual-input="type !== 'range'" |
|
|
|
:manual-input="type !== 'range'" |
|
|
|
:model-value="modelValue" |
|
|
|
|
|
|
|
:selection-mode="type" |
|
|
|
:selection-mode="type" |
|
|
|
:show-icon="showIcon" |
|
|
|
:show-icon="showIcon" |
|
|
|
:show-time="showTime" |
|
|
|
:show-time="showTime" |
|
|
|
@update:model-value="$emit('update:modelValue', $event)" |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
<label v-text="label" /> |
|
|
|
<label v-text="label" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|